cancel
Showing results for 
Search instead for 
Did you mean: 

Setting fields mandatory based on other fields

Former Member
0 Kudos

Hi,

In my adobe form there are 4 input fields(F1,F2,F3 and F4) and one field(F5) which is input optional. But if any field (F1, F2,F3 or F4) gets changed, the fifth field F5 has to be mandatory. I guess some java scrip is required but I dont have any idea on the same.

Please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

we have a similar situation where a field must be filled in if a value is chosen in our dropdown box.

you can throw a popup message stating that the field must be filled...


JavaScript
xfa.host.messageBox("This is a message", 3, 1);
FormCalc
xfa.host.messageBox("This is a message", 3, 1)

A valid integer representing the value of the button pressed by the user:

u2022 1 (OK)

u2022 2 (Cancel)

u2022 3 (No)

u2022 4 (Yes)

Or what we did is just checked all the values after the SUBMIT and issued error messages in a message area letting the user know what they missed.

Former Member
0 Kudos

Hi,

There is proerty in the object window from palate in adobe form designer. There select the Require option for the F5 field we can achieve the requirement.

Let me know if any further information are required.

Thanks,

Ramana