This topic is locked
[SOLVED]

 js setting value and dependant fields

12/21/2012 2:31:54 PM
PHPRunner General questions
W
wildwally author
ctrlmyship.on('change', function(e){

ctrlname.setValue(ctrlmyship.getValue());

});
ctrlcompship.on('change', function(e){

ctrlname.setValue(ctrlcompship.getValue());

});


I found a similar post but the solution was to upload to demo account.
Looking to find out how to have the dependant fields looking at the ctrlname field seen above trigger the dependant lookup. Manually selecting the value in the field will trigger the dependant code but passing/setting the value will not.

Sergey Kornilov admin 12/21/2012

After setting the value of master control fire 'change' event for this control.

Here an example: http://stackoverflow.com/questions/136617/how-do-i-programatically-force-an-onchange-event-on-an-input

I suggest to use jQuery based solution.

W
wildwally author 12/22/2012

Thanks that did what I needed.