Why am I getting the error below, when I try to save the formula (noted below in red) in free flow scripts.
The type of field is a Radio Button with Two Choices (Yes & No)
(I allowed for edit access to support and share to support. The form I am having trouble with is "Mission Score Card" url mislimdb
Error in statement at line number 3
The template variable y_o_snip_pts is of type STRING. But you are trying to update it with an expression of type BIGINT
Here is the script I am trying to save in free flow script
if (input.y_o_sni == "Yes")
{
input.y_o_snip_pts = 25;
}
else if (input.y_o_sni == "No")
{
input.y_o_sni_pts = 0;
}
But the the same exact formula
(w/few changes) worked
for a different Radio Button as shown below
in (input.b_o_sni == "Yes")
{
input.b_o_sni_pts = 25;
}
else if (input.b_o_sni == "No")
{
input.b_o_sni_pts = 0;
}