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

New Here ,
Aug 20, 2019 Aug 20, 2019

Copy link to clipboard

Copied

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;

}

TOPICS
Acrobat SDK and JavaScript

Views

40

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 20, 2019 Aug 20, 2019

Copy link to clipboard

Copied

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...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2019 Aug 20, 2019

Copy link to clipboard

Copied

Would using Adobe Experience Manager Forms make any difference?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 21, 2019 Aug 21, 2019

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines