Skip to main content
Participating Frequently
December 5, 2018
Question

visible/hidden text field dependant on 2 checkboxes

  • December 5, 2018
  • 1 reply
  • 1302 views

Hi.

I have the below scenario, whereby there are two checkbox options and if yes is selected for either of them, then they need to provide details in the text field, even if no is selected in one but yes is selected in the other I need the text field to be visible, but if no is selected for both then the text fields should be hidden

I currently have this script (or something similar) in all of the checkboxes:

This works if they select no for the first option and yes for the second.  But, if they select yes for the first option and no for the second, it removes the text fields.

I'm just learning scripts in Adobe pro DC so I'd really appreciate any help I can get.

thanks

    This topic has been closed for replies.

    1 reply

    Mylenium
    Legend
    December 5, 2018

    You need to nest the conditionals and expand the code to catch those conditions, i.e. check one field and then in a sub-conditional check the second field. If you only do it at the root level, obviously the condition is always true for at least one of the fields and there is no further criteria to check.

    Mylenium

    leahc18Author
    Participating Frequently
    December 5, 2018

    thank you Mylenium for replying. 

    My only problem is that, because I'm just learning, your instructions are a bit confusing.  Are you able to show me in a screen capture, what you mean.

    leahc18Author
    Participating Frequently
    December 11, 2018

    Hi.

    I'm just wondering if anyone can help me with this query.  As I mentioned, I'm very new to this type of coding so basic instructions or screen shots of what I need to do would be greatly appreciated.

    thank you so much in advance

    Leah