Skip to main content
Participant
August 9, 2016
Question

Dropdown Box Data to populate another box

  • August 9, 2016
  • 1 reply
  • 450 views

Hello!

I am having a hard time.  I am creating a HHP Respite Agreement for my employees.

What I need is as follows.

The employee will use the drop down box and choose the care level of the individual (Sis Level: 1 2 3 4 5 6)

What I want to happen is when the employee chooses the sis level it will automatically fill in the rate into another box

PLEASE HELP.

How can I do this

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 9, 2016

Put the rates as the export values for each item and then use a simple script to copy the value of the drop-box to the text field.

Participant
August 9, 2016

Thank you for the reply. How do I do that?

try67
Community Expert
Community Expert
August 9, 2016

To apply the rates as the export values go to the Properties of the drop-down field and under the Options tab you can insert them.

It should look something like this:

(Make sure you also tick the option to commit the selected value immediately, as is shown above)

Then go to Properties of the text field and under the Calculate tab select Custom Calculation Script and enter this code (let's say the name of the dropdown is "Dropdown1"):

event.value = this.getField("Dropdown1").value;

That's it, pretty much.