grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

Conditional / flexible content field support

Open onetrev opened this issue 5 years ago • 3 comments

A flexible content field (similar to the similarly named field in Advanced Custom Fields for WordPress) would add a massive amount of power and functionality to Grav forms.

The idea for this was posted a Grav discourse post, along with some code to essentially get it working. But if this could be integrated into the Form plugin core that would be amazing!

onetrev avatar Dec 21 '18 01:12 onetrev

There's one more thing that needs to be taken into consideration: form validation.

mahagr avatar Jan 03 '19 09:01 mahagr

Hey @Romarain I was just wondering how you ended up going with your JS script that would enable this in Grav? Were you thinking of creating a pull request?

onetrev avatar Nov 19 '19 23:11 onetrev

@onetrev Sorry for the late response. Glad you mention my work. It ended well and work perfectly for its purpose : making some form fields to be conditioned by other fields' states. It also give the power to mix several layers of conditioning ( A conditioning B, B conditioning C, etc).

I never posted it publicly because I was wondering if I could sell it (i try to start my business and anything count), but I could give it to Grav for it to integrate in the project, as a "thank you" gift. It would be the least I can do.

But things gone wild in the Discord of Grav, and I've been told to stop interacting with people. So now, I suppose I'd rather release it for my own account.

Heraes-git avatar Mar 20 '20 09:03 Heraes-git