I have a field with a “Numeric” format. I added a conditional code to another field that bases it’s validation on if the initial field is a certain number. However, when I go to test the form, I get an error saying that the contents of the numeric field is a string and, therefore, cannot interact with a operand. How can I get the system to read it as a number?
If the numeric field has a default value, the condition can be based on numerics, such as
Int32.Parse(REQUEST_TEXTBOX1.Text) != 12.
Otherwise, if the numeric field doesn’t have a default value, you can compare strings; for example,
REQUEST_TEXTBOX1.Text.Trim() != "12".