Skip to main content
paulo55628202
Participant
Aug 20, 2019 7:51 PM UTC
Question

make date field visible then invisible depending on value selected in dropdown list

I used the following code in Properties Calculate to make a date field visible if "yes" is the selected choice from a dropdown list. The code works perfectly until the form is opened in Acrobat from a smart device, in my case an iPhone. The date field then fails to become visible when "yes" is selected in the dropdown list. All help with this appreciated as I have 30 date fields in my form

if (this.getField("approved1").value == "yes"){  

event.target.display = display.visible;

}else

{

event.target.display = display.hidden;

}

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Aug 20, 2019 8:14 PM UTC

Almost no scripts are going to work on mobile devices. You should try PDF Expert by Readdle, though. It currently provides the best scripting support on iOS devices. It just might work...

Translate
paulo55628202
Participant
Aug 20, 2019 10:43 PM UTC

Would using Adobe Experience Manager Forms make any difference?

Translate
try67
Community Expert
Community Expert
Aug 21, 2019 12:00 PM UTC

Yes, then it won't work at all on a mobile device...

Translate