Custom validation script to check boxes based upon answers in a form field Acrobat

New Here ,
Feb 13, 2021 Feb 13, 2021

Copy link to clipboard

Copied

I want different checkboxes checked based upon the answers in the form field.

if (event.value = “Yes”){this.getField(“More Information”).value = “Yes”;}
if (event.value = “No”){this.getField(“More Information”).value = “No”;}
if (event.value = “Unsure”){this.getField(“More Information”).value = “Unsure”;}

I'm getting a SyntaxError: illegal character 1:at line 2

Thank you!

TOPICS
Create PDFs, How to, JavaScript, PDF forms

Views

44

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 ,
Feb 13, 2021 Feb 13, 2021

Copy link to clipboard

Copied

LATEST

Use the correct double quotes "

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