Hide fields under conditions when editing a form

By: Andreas panagiotopoulos | Asked: 12/13/2024
ForumsCategory: How-toHide fields under conditions when editing a form
Andreas panagiotopoulos asked 15 hours ago
I'd like to write a php snippet to conditioanally hide a field when editing entries. I can use this hook herehttps://formidableforms.com/knowledgebase/frm_field_type/ but how will I get entry_id and value of the field?   Thank you!
1 Answers
Victor Font answered 9 hours ago
What are you trying to do? You don't need to write code to conditionally hide fields. Conditional fields are built into Formidable.
Andreas panagiotopoulos replied 4 hours ago

I'm trying to hide some specific fields of a specific form when editing programmatically, because some times formidable onditional logic does't work when editing entries with a modal. While conditions are working when submitting an entry, these are not working because of this https://formidableforms.com/knowledgebase/publish-a-form/#kb-limitations (publish the same form multiple times on a single page). This is the answer of the official support.

So, because I'd like to use modal for editing specific fields, I try to find a way to have these condition with php.

This function is a good start https://formidableforms.com/knowledgebase/frm_field_type/#kb-hide-a-field-when-editing, it is working in general (fields are hidden) but I'd like to check values before hiding. So, how can I edit this function to get entry_id? The form id is know, but entries?

Thank you!

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