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.

How to remove mandatory function from the UI Page?

Jessica28
Tera Guru

Hello,

I need help on how to remove the mandatory on the reason field. Can someone please help?  Thank you

 

 

Jessica28_0-1713511918096.png

 

This is the code on the UI Page:

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	<g:dialog_notes_ok_cancel
		dialog_id="change_confirm_cancel"
		textarea_id="change_confirm_reason_text"
		textarea_label="${gs.getMessage('Reason')}"
		textarea_label_title="${gs.getMessage('A reason is required to cancel this change')}"
		textarea_name="change_confirm_reason_text"
		textarea_onkeyup="enableButton()"
		textarea_onchange="enableButton()"
		textarea_style="height:auto; width: 100%; resize: vertical;"
		textarea_title="${gs.getMessage('Enter the reason here')}"
		ok=""
		ok_action="cancelChangeRequest"
		ok_id="change_confirm_ok_btn"
		ok_title="${gs.getMessage('Cancel change request')}"
		ok_type="button"
		ok_style_class="btn btn-primary disabled"
		cancel_title="${gs.getMessage('Close the dialog')}"
	/>
</j:jelly>

 

1 REPLY 1

Community Alums
Not applicable

Hi @Jessica28 ,

Try removing this line - "textarea_label_title"