Skip to main content
Participant
March 12, 2016
Question

Show/Hide JavaScript some field based on Numeric Field Value

  • March 12, 2016
  • 1 reply
  • 428 views

Show/Hide JavaScript some field based on Numeric Field Value

I have three field as below:

"NumericField1"

"TextField1"

"TextField2"

Conditions:

If "NumericField1" = 0 then Show "TextField1" & Hide "TextField2"

If "NumericField1" = 1 then Hide "TextField1" & Show "TextField2"

I need JavaScript for this calculation

This topic has been closed for replies.

1 reply

Inspiring
March 12, 2016

It would be best to implement this as a custom validate script for the NumericField1 field. But what should happen with the two other fields when NumericField1 is something other than 0 or 1, including blank?

Participant
March 18, 2016

There will be either 0 or 1. not including blank