The CreatorCon Call for Content is officially open! Get started here.

hide delete from embedded list

Ravish Shetty
Tera Guru

how to hide these delete buttons?

 

find_real_file.png

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

You can't do that since this is an embedded list. You are in the process of inserting a record, but you have n't yet. So you should be able to remove it. And only when you save it either gets created or deleted.


Please mark this response as correct or helpful if it assisted you with your question.

dclayne
Kilo Expert

I know this is an old topic, but just in case anyone is still looking at this, as I was, I found the best option for me was to create a read-only boolean field in the table that comprises the data in my embedded list. I called my field "active." I then created a before delete business rule that prevents deletion of the given record when the record's "active" field is true (and allows for its deletion when the record's "active" field is false). I then controlled how that value is set from other business rules.

This doesn't hide the red "X" from appearing in the embedded list; however, it prevents users from deleting the records when they should be deleted in another manner, only after certain logical requirements are set.

This saved me from having to create a bunch of ACLs or add a bunch of on-the-fly data to the user's session through display business rules and constantly having to change it back-and-forth (and praying they don't have multiple windows open).

Serghei Tolstov
Tera Contributor

could be done through ACL of that table, to restrict deletion of the record to everybody :

11111.png