When is a boolean not a boolean?

R

RocketMan

I made a data item of boolean type and selected "0" as its default.
It almost works.

I can change it with the submit function rule to "1" but I cannot seem
to see that in the java script.

I wrote some code in the onsave function and it cannot detect when its
1. So, how do I detect its value in js?
 
K

K.Ramana Reddy

Hi,

var x = XDocument.DOM.selectSingleNode("Xpath of your field").text //
getting the value of field.

Then using IF condition you can check the value 0 or 1.

This is JScript

I hope this will help for you.
 
Top