Skip to main content
bryanp88839111
Inspiring
August 16, 2019
Question

I need help with formulating a mouse-down event for a form.

  • August 16, 2019
  • 1 reply
  • 1358 views

I have a form with a drop down menu with choices A, B, C, D.

Each drop down populates its own text into a list of text fields below it.

Below the list, I have another text field (Details) and I would like text (more detail) to populate based on a mousedown event for each item in the list. I just need help with this last step. The Tool Tip function won't work because the list populates with different information based on what's selected in the dropdown.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 16, 2019

So when the user clicks into the text field you want to populate the Details field with specific information, depending on the value of the field they clicked into, basically?

bryanp88839111
Inspiring
August 16, 2019

Yes I think you have it.

When a user selects one of the drop-down choices, the information in the list might change.

For example, with Rental DP3 selected,  field 1, column 1 says "Collapse" but if another drop-down is selected, it may say "Fire".

I want to be able to click on the listed fields and it show more details about what Collapse means, or what Fire means.

try67
Community Expert
Community Expert
August 16, 2019

OK, then you can use something like this:

if (event.target.value=="Fire") this.getField("Details").value = "some info about fire";

else if (event.target.value=="Collapse") this.getField("Details").value = "some info about collapse"; // etc.

else this.getField("Details").value = "";