Jump to content

How to display choices in one page field input dependent on another page field input


wilsea
 Share

Recommended Posts

Is there any simple way in ProcessWire to have the contents of one input field vary depending on the choice made in the first input field.

For example, if the user selected farm in field A, then field B choices would be horses, cows and sheep, but if the user selected fruit in field A, then field B  choices would be apples, oranges and pears.

I know it could be done with javascript and ajax, but I'm wondering if there's another other way, maybe some code in one of the form fields.

The video at http://processwire.com/api/selectors/inputfield-dependencies/#examples looks really nice, but I can't find the show-if and require-if options shown in the video in my recently downloaded copy. I guess those options are in the latest development version, but I always seem to end up with the latest stable version.

After tearing my hair out with WordPress, Drupal,  I'm finding ProcessWire such a joy to use that I'm getting more and more ambitious in what I want to do.(and in a fraction of the time  :) ). 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...