Extra space in Catalog item form

samadam
Kilo Sage

There is extra space showing up after all the variables on the catalog form. I tried to wrap all the variables in a container but did not help. Any ideas?

1 ACCEPTED SOLUTION

Cheyenne1
Kilo Guru

That may be why. Try switching your g_form.setVisible to g_form.setDisplay



Set Visible:


Hides the field if false.


If the field is hidden, the space is left blank. This method cannot hide mandatory fields with no value.



Set Display
Displays the field if true. Hides the field if false. This method cannot hide mandatory fields with no value.
If the field is hidden, the space is used to display other items.


View solution in original post

13 REPLIES 13

samadam
Kilo Sage

This only happens for one option where I have only one container. Others have multiple but they show up fine


samadam
Kilo Sage

Is there any alternate to this? If i remove all the containers it might mess up the formatting on other options.


Do you have any UI Policies or Catalog client scripts that hide variables on the form? using either g_form.setDisplay or g_form.setVisible ?


samadam
Kilo Sage

yes, have a bunch of them.


Cheyenne1
Kilo Guru

That may be why. Try switching your g_form.setVisible to g_form.setDisplay



Set Visible:


Hides the field if false.


If the field is hidden, the space is left blank. This method cannot hide mandatory fields with no value.



Set Display
Displays the field if true. Hides the field if false. This method cannot hide mandatory fields with no value.
If the field is hidden, the space is used to display other items.