Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

using formcalc i would like to pass a numeric value to a numeric field when a radio button = YES

Avatar

Level 1

my images were blocked do to content???

clck here for yes example http://webgis.co.okaloosa.fl.us/website/okaloosagis/gm/yes.bmp

clck here for no example http://webgis.co.okaloosa.fl.us/website/okaloosagis/gm/no.bmp

I have tried both below and keep getting errors on the =

if (xfa.resolveNode ("qfax.#field")  = "YES") then this.rawValue = 10

if (xfa.resolveNode ("qfax.#field")  === "YES") then this.rawValue = 10

if (xfa.resolveNode ("qfax.#field") .rawValue = "YES") then this.rawValue = 10

if (xfa.resolveNode ("qfax.#field") .rawValue === "YES") then this.rawValue = 10

thanks

mike

1 Accepted Solution

Avatar

Correct answer by
Level 1

was able to figure it out by using JAVA

 

 

if  (xfa.resolveNode("qfax.#field").rawValue == "YES")

{

this.rawValue = 10

}

else

{

this.rawValue = 0

}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

was able to figure it out by using JAVA

 

 

if  (xfa.resolveNode("qfax.#field").rawValue == "YES")

{

this.rawValue = 10

}

else

{

this.rawValue = 0

}