Set field as read only based on a value from another field / conditional logic

By: Uli Schauenberg | Asked: 11/06/2023
ForumsCategory: How-toSet field as read only based on a value from another field / conditional logic
Uli Schauenberg asked 9 months ago
Is it possible to set a field as read only based on a value of another field? The conditional logic shows only that a field can be set as visible. But in our use case the field should always be visible - but just read only in some cases - based on an invisible field.
1 Answers
Rob LeVineRob LeVine answered 9 months ago
It really depends on your situation. If you're referring to when an edit entry form is displayed you can potentially use frm_setup_edit_fields_vars/. If, however, the value can change after the form is displayed or you're referring to a new entry form you'll need to use jQuery.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right