I have a requirement to change the label of the "Submit" button

komal shetty
Tera Contributor

I have a requirement to change the label of the "Submit" button to "Punch Time" in a specific record producer. How can I do that? 

5 REPLIES 5

ChrisBurks
Giga Sage

Hi @komal shetty ,

 

The documentation that ServiceNow has isn't really straight forward. The way it describes on how to change the label suggests that you're changing the out-of-box widget instance of the Service Catalog widget (widget-sc-cat-item-v2). However, it can't be edited because it's locked down so no one except for ServiceNow employees can change it.

 

Also it depends on what you have installed. If you have HRSD installed and are using the Employee Center the Servie Catalog widget (widget-sc-cat-item-v2) is actually embedded in a different widget. Thus the widget instance to modify would be different than what's suggested in the documentation.

 

That said, yes it still can be changed and changed without cloning. Here are the best steps (in my opinion) to make the change.

 

  1. As admin or portal admin
  2. Navigate to the portal your company is using.
  3. Select a Catalog Item/Record Producer so that it takes you to the rendered item as if you were going to submit a request. 
  4. Perform a Ctrl-right click on the widget ctrl_right_click.png
  5. This will take you to the page editor with the widget instance selected displaying the widget instance form. Ensure you are in the appropriate scope to editpage_editor_instance_selected.png
  6. In the Additional JSON  section add in the following code

 

 

 

"record_producer_label":{
	"value" : "Your Label Here",
	"displayValue": "Your Label Here"
}​

 

 

 

add_your_code_with_text.png

 

End result

new_label.png