3

Is it possible to show / hide certain form fields on an entry page depending on whether or not, say a checkbox is selected? Hoping for an add-in that can handle this.

2

Since you're only concerned with showing/hiding fields based on user choice, the Entry Type add-on would do the trick. It is "a dropdown fieldtype that shows/hides other fields on the publish page" based on the chosen option.

| improve this answer | |
1

This has been covered here and here.

I'm not sure that it's similar enough to those to be a duplicate, as they specifically sought to change other fields values, or show/hide fields based on entry ID, but the same technique is used.

You can story jQuery/JavaScript in the Instructions field for one of your fields. That will render HTML, including the contents of a <script/> tag.

In that <script/> tag, you can use jQuery to show/hide the other field based on the value of the checkbox field and an onchange event.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.