Reset button to make submit buttons read only

New Here ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

I have a reset button at the end of my PDF.  I want it to make my radio groups not read only and to make my submit buttons read only.  I have the first part working, but not the latter.  Here is my script on the Restart button:

var Q = ["KAQuestion.1", "KAQuestion.2", "KAQuestion.3", "KAQuestion.4", "KAQuestion.5", "KAQuestion.6", "KAQuestion.7"];

for (var i in Q) this.getField(Q).readonly = false; // this part is working to enable the Question radio group options

var S = ["Submit1", "Submit2", "Submit3", "Submit4", "Submit5", "Submit6", "Submit7"];

for (var i in S) this.getField(S).readonly = true; // this part is not working to disable the Submit# buttons

Thank you for your help, in advance

TOPICS
Acrobat SDK and JavaScript, Windows

Views

98

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 ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

What happens when you execute code in the console?

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 ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

LATEST

I works beautifully now.  Maybe I just needed to close and restart Acrobat, idk 😕  Thank you for your time!

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