Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Scrolling down to form field in workspace

mohd_ansari03
Tera Contributor

Hi Experts,

 

I am using workspace and I want the case form to be scrolled down to the closure code field as soon as user clicks on resolve button UI action. Is there any possible client side method to do this?

8 REPLIES 8

For Source 2 Pay workspace this is not available OOTB. Even Resolve button is custom here.

@mohd_ansari03 

you can check that OOTB Resolve button on incident and how it works on SOW

replicate that same for your case table and your workspace.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Tera Sage

Hi @mohd_ansari03 

 

Scrolling won’t work until you expand it first.

Use g_form.setSectionDisplay() in your client UI Action, then scroll.

 

g_form.scrollTo('  <field name >');

 

Ref:https://www.servicenow.com/community/itsm-forum/ui-action-scrolls-to-resolution-section-only-if-sect...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

g_form.setSectionDisplay() is already there in my script but g_form.scrollTo('  <field name >'); doesn't works in workspace