Skip Navigation

[Resolved] How can I make dependent fields required based on a specific field value?

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Dee_DeeA2948 5 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1185684

Tell us what you are trying to do? How can I make specific fields required based on a value in a different field?
For example:
IF field "Status": A > Make Fields #1 and #2 required.
IF field "Status": B > Make Fields #1, #2, #3, #4 required.

Thank you for your assistance.

#1185690

Thank you for waiting.

It seems that chat was disconnected somehow, but I've moved this to a regular support ticket.

You can show/hide specific fields based on the selected value from another field, using conditional form blocks:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

If a certain field is "required" but is wrapped inside a conditional block, it will automatically be treated as an "optional" field when it will be hidden.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1185700

My issue is resolved now. I didn't realize that the dropdown field I was referencing had API numbers. I was mistakenly entering my dropdown options as opposed to 1,2,3,4 into the logic. The resource link in the "support" reply contained a video which addressed this. Thank you, thank you, thank you!