Skip to main content
July 26, 2016
Question

Auto populate 3 other fields when option selected from drop down menu

  • July 26, 2016
  • 1 reply
  • 903 views

Hi

I am trying to create a form on Acrobat Pro 9.

I have a drop down menu for course name and would like 2 fields to be populated with the cost and one to duplicate the course name.

I have tried to create a script using the examples online however I keep receiving an error... "missing ; before statement 1: at line 2"

So if I pick course name I would like it to populate the cost into field Text15 then into field Course cost and then duplicate the course name into field Copy course name

Any help would be greatly appreciated.

Thanks

Jo

This topic has been closed for replies.

1 reply

Inspiring
July 26, 2016

You have a syntax error in the first line. We would need to see your code to tell you how to fix it. I expect that your error was discussed in the comments for the tutorial.

July 26, 2016

var Course Name = {

Word Introduction: [

["Text15",445],["Course Cost",$445],

["copy course name","Course Name"]

],

Word Intermediate: [

["Text15",445],["Course Cost",$445],

["copy course name","Course Name"]

],

Word Complex Documents: [

["Text15",495],["Course Cost",$495],

["copy course name","Course Name"]

]

};

I think it may be wrong?

Inspiring
July 26, 2016

Object names, element names canot have spaces in them unless they are between qoutation marks.