Form component showing form section twice in UI Builder

gjz
Giga Sage

I am trying to solve a gap in ServiceNow mobile functionality and I have run into an issue that I can't figure out.

 

To get our IT staff to use Now Mobile Agent while they are in the field, they need to be able to update catalog task variables.  ServiceNow does not have any OOB functionality, but I think I can do it based on an old post from someone who had the same requirement and using Mobile App Bridge and the documentation.

 

The first thing I needed to do was create a page in UI Builder for the form component and a button for the Mobile App Bridge to communicate with the mobile app.  I created a new view called mobile_variables that has just the variable formatter on it.  It works fine in the core UI.  However, in UI Builder, it displays twice and I don't know why.  I'm not finding any documentation or posts on using the Form Controller that are helping me understand, hopefully someone has used it and can help me.  

 

New view in Form Builder:

 

gjz_0-1793227779682.png

 

 

Core UI mobile_variables view:

 

gjz_0-1793226820983.png

 

UI Builder mobile_variables view:

 

gjz_1-1793227010487.png

 

As you can see, my UI Builder page is pretty basic:

 

gjz_2-1793227066312.png

When I added the Form component to the page, I kept the preset that comes with it and all I did was change the view in the Form Controller data resource.

 

gjz_3-1793227158900.png

 

Can anyone help me figure out why the variable formatter displays twice?

7 REPLIES 7

Hi @gjz 

Yes, OOB mobile functionality supports displaying variables with existing values(Not Empty One), but that doesn't mean updating them through mobile configuration is impossible. Please refer to the screenshots to see how I am updating variables using a simple input screen. This approach requires only mobile configuration, without customizing the workspace, and takes significantly less time.

And for empty variables, you can create corresponding fields on the table, display them in the Details tab, and synchronize their values with the variables.

Workspace customization may take more time, whereas this configuration is relatively simple and quick to implement. If you have already implemented the solution using Workspace, please proceed with it. This is just an alternative suggestion that can be achieved with minimal effort.

 

Additionally, regarding the variables formatter appearing twice, please try updating the SOW plugin if it hasn't already been upgraded.

frame_03.jpgframe_06.jpg

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You

 

Vishal Jaswal
Tera Sage

Hello @gjz 

This is quite strange!

Try clearing UI Builder cache as well as running cache.do whether this makes any difference or not:

VishalJaswal_0-1793647097088.png



VishalJaswal_1-1793647108809.png

 

Vishal - I should have thought about that but didn't.  However, it doesn't make a difference.  I think I will open a support ticket and see if they can answer.  They may not since it's a custom page, hopefully I can word it correctly and get an answer.