How to add more than 2 variables in a catalog item form?

johannes5
Giga Expert

Hi ServiceNow Community Developers,

Do you know if there is a way to put 3 variables per row in a catalog item form? For instance when you define variables to add to a form you can have a container start where you specify "2 columns wide" on the layout if you want to see 2 variables side by side per row in a catalog item form. What I would like to know is whether there is a way one can put 3 variables per row so that all 3 variables appear side by side in one row in a service catalog item form. Kindly advise.

Thanks,

Johannes

1 ACCEPTED SOLUTION

vamin
Giga Contributor

Yes you can.  Think of containers as your HTML <table> tags.  Containers can contain other containers.  Each container is a two column table using the container split.  Just add a container within the split and you will have multiple columns:

For example:

[Start] [Start] [Split] [End] [Split]  [Start] [Split] [End] [End]

The container above will give you One Row with 4 Four Columns.

View solution in original post

5 REPLIES 5

Brent Sutton
Mega Sage

Hi Johannes,

I don't believe this is possible. ServiceNow only supports single and two column layouts on catalog items.

If you are on the ServiceNow London release you could use a mult-row variable set to capture more than two inputs per line. Brad Tilton did a nice write up about multi-row variable sets in his blog - Exploring the Multi-row Variable Set

Let me know if this helped with your question.

Brent

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information. 

vamin
Giga Contributor

Yes you can.  Think of containers as your HTML <table> tags.  Containers can contain other containers.  Each container is a two column table using the container split.  Just add a container within the split and you will have multiple columns:

For example:

[Start] [Start] [Split] [End] [Split]  [Start] [Split] [End] [End]

The container above will give you One Row with 4 Four Columns.

Great tip Vamin,

I didn't realise that was possible. I just recreated it in my developer instance. Should look like the below:

find_real_file.png

End result:

find_real_file.png

I would point out that this won't work in Service Portal. Service Portal can only handle up to two column layouts.

Brent

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.

Works! 

Thank you very much vamin for your response.

Johannes