Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Autofill a Form

Avatar

Avatar
Level 1
Hmosman
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Hmosman
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
Hmosman
Level 1

25-04-2016

I need help in setting up a auto fill within a dynamic form. I'm not sure all of this can be done. But any help would be greatly appreciated!

On the form I have a dropdown box for employee profile. For example, if the user chooses employee profile #1 - I want the form to auto fill multiple fields after. Fields would include checkboxes, text fields, and other dropdown fields.

  •      Is this possible?
  • Is this a script and what is the basic formula?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

17-05-2016

You can do it by adding code to the change event of the employee profile dropdown box. You would need to code in all the employee details and manually add text to their relevant fields.

You can populate a second (or more) dropdown but you have to make sure you clear it first like so:

//dropdown change event

if(this.rawValue == "Steven Speilberg")

{

dropdown2.rawValue = ""; //sets the visible value of dropdown2 to null

dropdown2.clearItems(); //clears the items in dropdown2's list. This must be done otherwise the items will keep adding everytime you select an item.

dropdown2.addItem("Director"); //adds item to dropdown2

dropdown2.addItem("Producer"); //adds item to dropdown2

dropdown2.addItem("Writer"); //adds item to dropdown2

this.resolveNode("titleTextField").rawValue = "Mr"; //adds the text Mr to the titleTextField textfield

this.resolveNode("nicknameTextField").rawValue = "Stevie"; //adds the text Stevie to the nicknameTextField textfield

}

You can also set checkboxes all by just changing the dropdown item selected.