Help Needed: Show/Hide UI Action Based on Field Value in Associated Table

shareef_223
Tera Contributor

Hi Everyone,

I have a requirement where a UI action should be visible on the Table1 form when the "Candidate Shortlisted" field in Table2 is "Yes", "No", or anything else but not empty. Table2 is associated with Table1 through the "Hiring Process ID" field.

I need to show or hide the "Candidate Shortlisted" UI action based on whether the "Candidate Shortlisted" field in Table2 is not empty. How can I achieve this? Please help me out.

Thanks,
Shareef

2 REPLIES 2

Abhay Kumar1
Giga Sage

@shareef_223  You can user condition of UI action , user the script include whatever checks you would like to have and return a value which will be validated in condition of UI action to be displayed accordingly,

Hope this will give you an idea to proceed or let me know briefly about your requirement to provide working code for an example.

Hello @Abhay Kumar1 

Thanks for the response. Here is a brief about the requirement:

I have two tables named "Candidate Hiring" and "Candidate Reference." The Candidate Reference table is related to the Candidate Hiring table via the "Hiring Process ID" field. I want to create a UI action on the Candidate Hiring table. The Candidate Reference table has a "Candidate Shortlisted" field with values such as Yes, No, etc. For the associated records, if this field is empty, the UI action should be hidden. If there is any value (i.e., the field is not empty), the UI action should be shown.

Can you please help me with writing a script for the Script Include and how to call that function in the UI action?

Thanks,
Shareef