-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
required field handling #9
Comments
In theory this plugin should behave exactly like the Could you provide an example blueprint? |
Hi, category:
type: checkboxes
options:
value1: Value 1
value2: Value 2
firstTitle:
type: text
required: true
whenQuery: category ::any($ = "value1")
secondTitle:
type: text
required: true
whenQuery: category ::any($ = "value2") If I only select |
does this example help @rasteiner ? |
Yes, sorry. I was swallowed by deadlines. This makes it much more difficult, because the query can currently only be evaluated in the browser. Also, I don't believe I can change the serverside code in any way from a plugin. So, currently I have no idea how I could fix this. |
I have the same issue using kirby v4. |
Unfortunately the situation in Kirby 4 has not changed. There is no reasonable way to extend this behaviour in Kirby. Even if I'd implement the query parser in server side code, there is no way I could make Kirby use it. The only solution would be to integrate this functionality into Kirby core; I already asked the team about this and there doesn't seem to be much interest in accepting such a pull request. |
Hi,
thanks for providing this great plugin! I am wondering if there is a way to deal with required fields like in kirby itself. If a required field is hidden a page is considered "valid". While whenQuery doesn't seem to take this into account. Even hidden fields are evaluated while changing the pages state, correct?
Is there a way around it?
Best, Thomas E.-E.
The text was updated successfully, but these errors were encountered: