What is the trigger for a selection from a dropdown list?
I'm trying to set values other fields on that form based on what was selected from a given dropdown list.
I've assigned a Javascript to that dropdown field on every trigger available (Mouse: down, up, enter, leave, focus, blur); Javascript console active. Nothing triggers.
What do I need to do?
Javascript on selecting from a dropdown list
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 138
- Joined: Wed Mar 09, 2016 12:47 am
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Javascript on selecting from a dropdown list
Hello Claude Vidal,
You will need to put the JS in "Keystroke Action": And the code I am using in one of my salmes looks something like:
You will need to put the JS in "Keystroke Action": And the code I am using in one of my salmes looks something like:
Code: Select all
if (event.willCommit)
{
this.getField("SomeOtherFieldName").value = event.value + "your custom value";
}