Misalignment Catalog Item form

tomaslindev
Mega Guru

Hello everyone,
I need to layout this template in two columns, just like this image.

 

EHS Support Ticket.png

 

Instead, when implementing the two columns, I get this misalignment that I can't fix.

 

tomaslindev_0-1747079405684.png

 

The arrangement of the variables is currently this: 

tomaslindev_1-1747079463929.png

 

Any ideas on how to fix this misalignment?
Thank you very much and best regards.

 

3 ACCEPTED SOLUTIONS

Shree_G
Kilo Sage

Hello @tomaslindev ,

 

The "Break" in your variables is adding new line, remove the "Break" formatter.

 

Shree_G_0-1747116560970.png

 


If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.

View solution in original post

J Siva
Tera Sage

Hi @tomaslindev 
he issue arises because you have checked the 'Display title' checkbox on the container start type variables. Additionally, the Break type variable is not required. As a workaround, create a label type variable to show the container headings and uncheck the 'Display title' checkboxes.

 

Regards,
Siva

View solution in original post

SumanthDosapati
Mega Sage
Mega Sage

@tomaslindev 

You can easily achieve this by setting your containers properly. Follow below steps :

  1. Create a new Main container start with order 10. (Uncheck display title)
  2. Set your 'Request information' Container start order to 20.
  3. Set your variables order from 21 to 29
  4. Set a Container End with order 30. (This is container end for request information)
  5. Add a Container Split here with order 50
  6. Set your container start for 'Contact information' order to '60'
  7. Set your variables order from 61-69
  8. Set a Container End with order 70. (This is container end for contact information)
  9. Set one more container End with order 100 (This is end for main container)

Inshort what we did is, nested containers. One main container which holds Request container and Contact container with a split in between.

> Main container start > Request container start > Variables in request container > Request Container End > Container Split > Contact container start > Variables in contact container > Contact Container End > Main Container End

 

Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth

View solution in original post

5 REPLIES 5

shantanu_patel8
Mega Guru

Hi @tomaslindev 

 

The issue is with respect to misalignment and the only way to resolve it via trial and error.

 

Please refer to : https://www.servicenow.com/community/developer-forum/how-allign-catalog-variables-properly-within-se...

 

It should be helpful on how you can proceed.

 

Please mark the answer helpful and correct if it helps the issue. Happy scripting 🙂

-Shantanu

 

Shree_G
Kilo Sage

Hello @tomaslindev ,

 

The "Break" in your variables is adding new line, remove the "Break" formatter.

 

Shree_G_0-1747116560970.png

 


If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.

pratikjagtap
Giga Guru

Hi @tomaslindev ,

 

Please remove the break variable its adding one more line.

 

If my response helped, please hit the 👍Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Pratik

 

pratikjagtap_0-1747117583109.png

 

J Siva
Tera Sage

Hi @tomaslindev 
he issue arises because you have checked the 'Display title' checkbox on the container start type variables. Additionally, the Break type variable is not required. As a workaround, create a label type variable to show the container headings and uncheck the 'Display title' checkboxes.

 

Regards,
Siva