Hi,
The styles cannot be applied to the content of an input box (Used in the calculated fields), but you can to use an auxiliar calculated field that won’t be visible in the public website, but that will be included only in the email:
1. Insert a new calculated field in your form, and tick the attribute: “Hide Field From Public Page”
2. Use the same equation that your previous calculated field, but with the following modifications:
if(fieldname50 == 'Custom:') return '<span style="color:green;">Price on its way via email</span>';
else return
NUMBERFORMAT(fieldname8+fieldname64, 'GBP');
})();
3. Finally, select the option to use the HTML format in the emails content, and insert each field by separated in the mail’s content to include the new field, but excluding the previous one:
http://wordpress.dwbooster.com/faq/calculated-fields-form#q81
Thank you for using our plugin!
Hi there,
Thanks for this. Why is this formula still echoing ‘Price on its way via email’ even though fieldname69 has 0 chosen?
(function(){
if (fieldname69 != ‘Custom:’){
if(fieldname20 == ‘Custom:’) return ‘Price on its way via email’;
if(fieldname1 == ‘Custom:’) return ‘Price on its way via email’;
if(fieldname2 == ‘Custom:’) return ‘Price on its way via email’;
}
if(fieldname69 == ‘Custom:’) return ‘Price on its way via email’;
if(fieldname69 == 0) return ‘N/A’;
else return
NUMBERFORMAT(fieldname74+fieldname64, ‘GBP’);
})();
Hi,
I need the link to the webpage where was inserted the form, because I cannot check the possible values of fields with the equation only.
Best regards.