AnsweredAssumed Answered

Javascript Focus on Form Drop Down List

Question asked by cmykkid on May 13, 2017
Latest reply on May 19, 2017 by paul.crawford

This article is very helpful regarding how to control field form focus, but I can't figure out how to set the focus on a drop down list or button (Save or Cancel).

 

Specifically, here's the syntax for a date picker, but what's the syntax for a drop down list or save/cancel button?

NWF$('. datetimeFocus input.nf-date-picker').focus();

 

I'm pursuing controlling focus because the form rules don't fire after setting a field value with JavaScript. The only way I can get the rule to fire is if I change focus on some other field...either manually by clicking (don't want that) on the form or changing focus via JavaScript (want that).

 

Any help or other suggestions are appreciated.

Thanks,

Gary

Outcomes