Formatting calculated field results on one line
-
I want to display the results in another field, using the calculated field as auxiliary.
I’ve inserted an “HTML Content” field in the form, with a DIV tag as its content:
<div class=“result-here”></div>The equation I used is as follows:
(function(){
var result = fieldname1+fieldname2;
jQuery(‘.result-here’).html(result);
return result;
})()and have ticked the checkbox “Hide the field from the public form” in the properties of calculated field.
When defining the new style class through the “Customize Form Design” attribute in the “Form Settings” tab I used:
#fbuilder .result-here{font-size: 18px !important;}
However, I also want the text “Total = $” on the same line, but whenever I try adding the text, it ends up on two lines:
Total = $
2350.00How do I get it on one line so it looks like this (also with comma for thousands)
Total = $2,350.00
- The topic ‘Formatting calculated field results on one line’ is closed to new replies.