How to reference a component in UI Builder from a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
So my end goal is to hide certain attachments from views if they've been marked as having PHI.
I have a new column in the sys_attachments table called phi_pii that's a bool and an ACL that controls whether or not a specific attachment is viewable based on the bool and roles.
My issue is that I'm having difficulties with trying to set the bool as true when trying to upload the attachment.
My current attempt at a solution is adding a Checkbox to the UI builder page "Attachment with SNC" labeled "PHI Attachment". I want it so that if the checkbox is ticked when a user uploads an attachment, the attachment is marked as PHI. I believe I would need to use a business rule that would set this column, however, I'm not sure how to reference the Checkbox component or how I would go about doing that.