Hide/Disable Post button in Portal

ican
Tera Contributor

I would like to disable/hide "Post" button in Portal Form Activity logs:

ican_0-1765984566700.png

Also make the text field read-only as well without touching the ACL.

 

Is this possible?

 

Thanks.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@ican

Easy way 

-> if your user doesn't satisfy field level WRITE on comments then that Post button will be gone

-> you can also create field level READ ACL on comments and if user fails that then that text field will be read-only

hard way

-> you will have to clone the OOTB widget which renders that and then make changes to it, then add this new widget to page

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

i did the hard way.

i already cloned the form widget, but the whole form is only rendered through this:

<sp-model form_model="data.f" mandatory="mandatory" embedded_in_modal="embeddedInModal"></sp-model>

which widget should i clone to modify this one?

thanks