CalcBuilder Forum

Adding a placeholder in inline results

User road9media 2015-08-24 12:53:32

I am making the inline results box to be viewed in form all time and i need to add a placeholder text .. is there a way i can do that?

Moonsoft support 2015-08-24 16:06:38

Hi,
do you mean to set a default text in the place the inline result will be shown afterwards, right?. You can use this code at the javascript section of your calculator, at 'executed on loaded page' tab:


CB("div").html("My placeholder");


just replace

yourinlinefieldname

and

My placeholder

by the proper values (the name of your inline field and the text you need to show).


Hope this helps,regards

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!