Jump to content

Field dependencies for open/closed fieldsets?


dragan
 Share

Recommended Posts

Is there a way to use field dependencies like

myfieldset=0/1

or

myfieldset=open/closed

?

This would be awesome for large, complex forms. Instead of classical multi-page forms, or building something entirely custom with Vue/React/YourFavoriteFrameworkThisYearAround...

So, e.g. if the user has completed step 1 (= fieldset 1), he could go to the next step 2, and fieldset 1 automatically closes.

Perhaps there's already something similar around to achieve the same thing? (core or extra modules)

Link to comment
Share on other sites

I was thinking in the backend, in a template. I know I can split up a template into several tabs, but that's not really how multi step forms usually work or look like.

Usually you'd have a button at the bottom "next" and then onClick open up the next number of input fields and hide the previous one (sort of like an accordion).

Using checkboxes instead of buttons (for the "next" or "previous" actions) would probably work with the existing PW inputfield dependency possibilities. However, from a UX point of view it would feel strange.

Has someone ever thought of creating an inputfield button (for uses like this)?

Perhaps I'll try to use RuntimeMarkup, together with some custom admin.js...

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...