Now mobile app: Hide Submit button

Dana2
Tera Expert

Hi,

 

Any ideas on how to hide or disable the Submit/Order button? Is it possible event?

 

Thanks,

Dana

11 REPLIES 11

atherakhtar
ServiceNow Employee
ServiceNow Employee

Hi Dana,

Greetings for the day !!

I think there are no OOB way to achive this. If you change this based on the logic of widget SC Catalog Item you wont be able to attach it to the mesp portal page (me_sc_cat_item) as this portal is read only and is not allowed to change any configuration.

I am thinking it is not possible to do this.

But why do you want a user to go to the catalog item and not submit it ?

If you want to put any special condition before submit then it can be achived in the same way as it is in the service portal through Catalog client script.

Please mark this as helpful/correct to help others on the community.

Thanks,

Ather

 

Hi Ather,

 

I did try the widget way but I came to the same conclusion: that everything mobile app is protected and cannot be changed. As for catalog client scripts, I know they are not supported by the app.

My use case is: I have catalog items that are content items and since they are not supported, I figured I would create 'normal' items on sc_cat_item table and use macro variables to add my content (in my case is an URL) using widgets. So it doesn't make sense to have the Submit button.

 

What I also tried is hiding the button from the settings, which worked on the SP but not on mobile app, sadface.

find_real_file.png

atherakhtar
ServiceNow Employee
ServiceNow Employee

Hello Dana,

Client scripts are not supported but Catalog client scripts that are on the catalog (catalog item itself) are supported and should exhibit the same behavior as in /sp.

Thanks,

Ather

Hi Ather,

 

I gave the catalog client script a try and it worked on SP but not on mobile app.

Tried to hide the button using jquery, getElementsByTagName and getElementsByClassName.

 

find_real_file.png