Muhammad Sikander nasar
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Change the label titleThank for such a nice plugin and best support.Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Change the label titleHi,
This is working fine.I have only change
`jQuery( ‘.myfield label’ ).html(‘select color’);to
jQuery( ‘.myfield label’ ).text(‘select color’);
Forum: Plugins
In reply to: [Calculated Fields Form] Change the label titleHi,
This is my code that I am using.But this is not going to change my label.
Can I give label or leave it blank.(function(){ var v= fieldname3; if( v == 7777 || v == 8500 ) { return PREC(8*(fieldname1/100), 2); jQuery( '.myfield label' ).html('select color'); } else { return PREC(0.8*(fieldname1/100), 2); jQuery( '.myfield label' ).html('select other volume'); } })();
I am using three fields.
1: The filed for which I need label.(Number field)-> this is fieldname1.I have given myfield class to this field.
2:calculation field(that perform calculation on fieldname 1).this is fieldname2,
3:A price field that is hidden and I will assign this value to fieldname1. This is fieldname3.Thanks in advance!
Forum: Plugins
In reply to: [Calculated Fields Form] Change the label titleHi,
Thanks.But this is not calculated field.this field type is number.
Best regardsForum: Plugins
In reply to: [Calculated Fields Form] Change the label titleHi,
I have a field that have label “Select color volume”.can I change it using the if conditions.
Like if I have price=10 then the field label will be “Select color volume” and if the price other then 10 then the label will be “Select other volume”.
we can do this in jquery like this.$(‘#price’).text(‘select color volume’);
Thanks
Best regardsForum: Plugins
In reply to: [Calculated Fields Form] Hide field and remove requiredHi,
Thanks.You save my lot of time.I am very happy with your quick response.
I have also assign class to the field But unable to get the price value.
I have given class like this.
<script type="text/javascript"> jQuery(document).ready(function(){ var price = jQuery('#pro_price').val(); jQuery( '.price_cal input').val( price ); }); </script>
This is my my code that I am going to try.But the calculated form field do not get that price.
<script type="text/javascript"> jQuery(document).ready(function(){ var price = jQuery('#pro_price').val();// this val is 9560 jQuery( '#fieldname25_1').val( price ); unable to assign that value to the calculated form field.I have given id of calculated form field . }); </script>
Hi,
Yes this work for me.Thanks
Hi,
Thanks for your response.Now I understand the point.I have also check the equation help and that works for me.
This is my code:
(function(){
var v= fieldname1+fieldname2;
if(v<= 7500){
return fieldname1+fieldname2+7700;
}
if(v >7500 && v<=15000){
return fieldname1+fieldname2+8500;
}
if(v >15000 && v<=20000){
return fieldname1+fieldname2+9060;
}
if(v >20000 && v<=30000){
return fieldname1+fieldname2+10985;
}
if(v >30000 && v<= 50000){
return fieldname1+fieldname2+12860;
}
if(v>50000 && v<=75000){
return fieldname1+fieldname2+21882;
}
if(v >75000 && v <= 100000){
return fieldname1+fieldname2+24787;
}
})();Regards
Muhammad Sikander NasarHi,
I am doing the if condition by removing dropdown and assigning the value to the input field.this is my code.but this does’t work.What is wrong in it.
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
(function(){ var v = fieldname1+fieldname2; if(v < 15000 ) { jQuery('input[name="fieldname23_2"]').val('9800'); } else { jQuery('input[name="fieldname23_2"]').val('500'); } })() I have also try by giving the class to the calculated field. (function(){ var v = fieldname1+fieldname2; if(v < 15000 ) { jQuery('.testClass').val('9800'); } else { jQuery('.testClass').val('500'); } })()
please give a look on this and suggest me.Thanks
Hi,
Thanks for such a nice help.I am thinking that I have to put in javascript.Now my problem is 100% solved.I am happy that you are giving all type of help.
Thanks
Kind Regards
Muhammad sikander
Hello,
Where I have to include the code so that its work.I have try to put in my own js file.
Thanks
Regards
Muhammad Sikander
Yes this is the thing that I need.
I am happy to see your best response.I wish you best for future.Thanks