Forum Discussion

IvanWeiss's avatar
IvanWeiss
Qrew Captain
6 years ago

Hiding Fields in Form Conditionally

I have a tasks table that related to many other tables.  For example my project has tasks, my companies can have tasks associated with them, my contacts can have tasks associated with them.  So I can attach an "action item" to basically anything.

Based on the task type (which is a field) I need to see different things on the form.

For example if it is a task type of Design I need to see the related project and ensure that is mandatory, draft due date, approval date, submitted date, etc.

If the task type is Construction I need to see the related project but I do not need to see the approval flow.

If the task type is an Opportunity I need the opportunity relation mandatory.

I tried using dynamic forms but in the wizard it generates an error because I have multiple rules acting on the same fields.  So it says only the last one takes effect.

How can I go about creating these conditions?  I was playing with maybe creating multiple forms but I dont know how to get the right one to be used at different times either since it is not dependent on role but that conditional drop down field.