Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Am I going crazy?! Is there no way to do this in just 1 variable set?

Beany81487
Tera Contributor

 

Hello all,

Yesterday, I spent more time than I probably should have trying to configure a single variable set for an address layout. My goal was:

  • Two full-width lines (100%) for Address Line 1 (mandatory) and Address Line 2 (optional)
  • Followed by four half-width lines (50%) for City, State, ZIP, and Country.

I’ve attached a photo for reference, but note that the pictured group was created using two separate variable sets.

Context:
I’m a Sys Admin working my way toward CAD, but I don’t have a strong coding background. I’m sure there’s a way to accomplish this with macros (I tried dabbling there but wasn’t successful). Honestly, I feel like I’m going crazy—this shouldn’t be that hard. My office is on the Yokohama version, so things aren’t as fully integrated as Zurich, but it still shouldn’t be this difficult. Am I missing something?

I appreciate any advice, but please note that I’ve already tried the following:

  • Adjusted variable width and layout in every way I could think of—no luck.
  • Used the container method in several variations, e.g.:
    • Open container start (1 column), Address 1, Address 2, container end + Start container (2 columns), City, State, ZIP, Country, container end.
    • I also tried split containers since I read that the variable itself acts as a container but still ended up with full-length lines.
  • Created macros with drop zones but couldn’t figure out how to map those zones in my variable set. Then I tried macros with direct zones like street_address_1 instead of coding with drop zones. I made all other variables active but hidden, kept the custom variable containing my XML visible and active, but it continued to show only the first address line.

At this point, I just need to know—I’m far too invested. On the plus side, I’ve learned a ton during these agonizing hours, even if I haven’t solved the problem yet.

 

Beany81487_0-1762615351432.png

 


Thank you!

-Cristina

6 REPLIES 6

Beany81487
Tera Contributor

2025-11-10_08h26_53.png

2025-11-10_08h28_55.png

 I've tried both of these methods to no avail. Maybe it's how they have the sp configured or something?

Hello @Beany81487, I believe above configuration should work well in native UI, but you'll have to make some adjustments, if doing the same in Portal. Basically, Variable set itself is a container and another container start causes a problem in the layout.

Could you please make the changes as below and share the outcome?

- Delete very first Container Start ( container1_start )

- Change container2_start to as below, 2 Columns Wide, alternating sides

Nishant8_0-1762824829197.png

 

P.S: Even you don't need container1_split since your layout is already 2 columns wide

 

Regards,

Nishant