You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the view settings do not have a validation system in place. This means the values can be basically anything, or be omitted. To have more fine grain control over the inputs, we'd need validation.
Describe the solution you'd like
Every settings should at least be able to be: required.
It should have a validate key which supports a callback, that receives the posted value, and the rest of the settings. Basically how Gravity Forms itself handles it.
Fields should also be able to have front-end validation; but this is secondary if the backend works well enough.
Validation should also work when changing the form
An action key could be added with incremental options for the future, but at least have: clear_on_form_change for example.
This solution is just whats off the top of my head, it might be better solved.
The text was updated successfully, but these errors were encountered:
This takes advantage of browser validation (related to #2159), while making a very small change.
I considered updating the `GravityView_FieldType` abstract class to add an `input_type` and just use the existing `GravityView_FieldType_text` class, but I determined that this was cleaner.
Currently, the view settings do not have a validation system in place. This means the values can be basically anything, or be omitted. To have more fine grain control over the inputs, we'd need validation.
Describe the solution you'd like
required
.validate
key which supports a callback, that receives the posted value, and the rest of the settings. Basically how Gravity Forms itself handles it.action
key could be added with incremental options for the future, but at least have:clear_on_form_change
for example.This solution is just whats off the top of my head, it might be better solved.
The text was updated successfully, but these errors were encountered: