Notifications
Announcements
No record found.
Hi,
I want to set the field focus on the option set value on load of the form in Unified client Interface. Please advise on how I can do this?
Please advise the JS to do this
Thanks,
Hi James,
You can set focus on a control with the SetFocus Client API.
formContext.getControl(arg).setFocus();
Hi partner,
You could use "formContext.getControl(arg).setFocus()" to archive this.
1.Add the JS function into form onload event.
Remember to select "Pass execution context as first parameter".
2.Save and publish.
No focus.
Focus.
function getFocus(executionContext){ var formContext = executionContext.getFormContext(); formContext.getControl("new_option").setFocus(); }
Regards,
Leo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 60 Most Valuable Professional
#ManoVerse 51
Satyam Prakash 42