CalcBuilder Forum

Adding a placeholder in inline results

Usuario 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

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!