How to direct the user to a specific section of the form?

Virendra K
Kilo Sage

Hi All,

The requirement is, If I hit the "Close" button to close the change request then it should ask for the Mandatory fields like Close Code , Close Notes which is on "Details" section of the form. 

Functionality is working as expected but if the focus/cursor is on another section then its not redirecting to (specific) "Details" section where the mandatory fields are placed.

 

How we could redirect cursor/user to specific section, "Details" ?

 

Regards,

Virendra 

1 ACCEPTED SOLUTION

@Virendra K 

OOB on incident form it works when we click Resolve button.

 

native view resolve.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

8 REPLIES 8

SN_Learn
Kilo Patron
Kilo Patron

Hi @Virendra K ,

 

Please check the below KB:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694100 

 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Hi @SN_Learn 

Thanks for your reply.

I used like g_form.getControl('close_code').focus();

but suppose cursor is on another section(snap) then I want to set the focus/cursor on "Details" section where close_code field is placed.

VirendraK_0-1736338754869.png

 

 

 

Regards,

Virendra

@Virendra K 

is it working in native?

Might be it's not supported in workspace?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

You are correct. Its not working on workspace.