cancel
Showing results for 
Search instead for 
Did you mean: 

script in formcalc not working properly

Former Member
0 Kudos

hi all,

my requirement is to display a watermark showing the text draft unapproved copy on all the pages...the watermark will appear if a particular condition is satisfied

ie if ekko-frgke = 2.

now what i have done i have inserted a subform on master page..inside the subform i have created a statix text containing the watermark text and a text field and binded that text field to ekko-frgke..

now i have written a script on the text field ..language formcalc run at client and server and event form ready event.

the script goes like this

if ($.rawvalue == '2'.)

$.parent.presence = 'visible'.

else

$.parent.presence = 'hidden'

endif

but in both conditions the watermark is appearing.

can anyone tell me where i am going wrong and what should be the appropriate formcalc script for this requirement..

your help will be highly appreciated..

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The string delimiter is " and not '

And what are those trailling points you have?

Matthieu

Former Member
0 Kudos

hi,

is that the only mistake?

one more thing is that though i am choosing the form:ready event but when i am activating the form instead of showing formready event it is showing the event events with scripts...

can anyone give me the proper formcalc script which will work in my case..

Former Member
0 Kudos

Sorry, but can't test that?

There is F1 Help in the application which will indicate you the correct syntax.

And if the event you choosed is not the good one just choose anther one and run a test.

That' doable right?

Matthieu