Record Producer - Change tab order

Alexandre Magea
Kilo Expert

Hi,

I am developing a Record Producer and I would like to change the tab order.

It seems like ServiceNow tends to go from top to bottom, and then left to right within the same container. However, I need to go left to right, and top to bottom.

I tried to change the layout and change the input orders to keep everything in place, but the tab order remains the same.

Does anyone know how to change the tab order from left to right?

Thanks!

9 REPLIES 9

Allen Andreas
Administrator
Administrator

Hi,

Can you provide screenshot to give better clarity?

Please mark as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Prateek kumar
Mega Sage

Have you tried using container splits??

https://docs.servicenow.com/bundle/orlando-it-service-management/page/product/service-catalog-manage...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Saurabh singh4
Kilo Guru

Hi Alexandre

 

If you go to the main record producer page and scroll down to the related lists and select variable sets tab

Click on the i icon next to your variable set and a little pop up box appears so you can change the order.

This changes the order for that record producer and not all the other items that use that variable set.

 

You can try this because am not sure about your requirement.

Please mark my answer correct and helpful, If this helps you in any way

Saurabh

Alexandre Magea
Kilo Expert

Thanks everyone for your help.

I just wanted to clarify what I am trying to do. Here's a screenshot of part of the Record Producer:

find_real_file.png

 

After I selected the "Start date", I want to press "Tab" to go to the next field (End date). At the moment, it goes to "Probationary Period" instead of going to "End date".

I cannot find any built-in property to change that order (In plain HTML, the property would be "tabIndex").

I looked at the API, it seems that we can change fields properties with "g_form" using the method "getControl()".

I tried this:

g_form.getControl("start_date").tabIndex="1";
g_form.getControl("end_date").tabIndex="2";
g_form.getControl("probationary_period").tabIndex="3";

Unfortunately, it does not work. I wonder if it could be because the tab first go to the "calendar" icon before moving to the next field and therefore "break" the sequence.

Thanks again for your help.

Any idea would be greatly appreciated.