Javascript code to work in iOS

New Here ,
Apr 05, 2019

Copy link to clipboard

Copied

These will work as separate actions in IE when assigned to a Yes Checkbox, they will not work in iOS

Action1

var nShow = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nHide;

this.getField("app.075SRG1100ExpiryDate").display = nHide;

Action2

var nShow = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nShow;

this.getField("app.075SRG1100ExpiryDate").display = nShow;

On the No Checkbox

Action1

var nHide = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nHide;

this.getField("app.075SRG1100ExpiryDate").display = nHide;

In iOS, the checkboxes work fine but not the hide/unhide element.

Help please

TOPICS
Acrobat SDK and JavaScript, Windows

Views

143

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

Javascript code to work in iOS

New Here ,
Apr 05, 2019

Copy link to clipboard

Copied

These will work as separate actions in IE when assigned to a Yes Checkbox, they will not work in iOS

Action1

var nShow = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nHide;

this.getField("app.075SRG1100ExpiryDate").display = nHide;

Action2

var nShow = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nShow;

this.getField("app.075SRG1100ExpiryDate").display = nShow;

On the No Checkbox

Action1

var nHide = event.target.isBoxChecked(1)?display.hidden:display.visible;

this.getField("app.074SRG1100IssueDate").display = nHide;

this.getField("app.075SRG1100ExpiryDate").display = nHide;

In iOS, the checkboxes work fine but not the hide/unhide element.

Help please

TOPICS
Acrobat SDK and JavaScript, Windows

Views

144

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
Apr 05, 2019 0
Adobe Community Professional ,
Apr 05, 2019

Copy link to clipboard

Copied

Acrobat Reader for iOS does support this:

JavaScript for Acrobat Reader Mobile API Reference (iOS)

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
Reply
Loading...
Apr 05, 2019 0