-
Notifications
You must be signed in to change notification settings - Fork 116
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
SPIKE Look at solutions between field validation conflicting between block level and page level #1204
Comments
I recommend we proceed with approach one, at a high level:
Approach one:A pair of draft PRs implementing the core of this are linked in the description. I strongly think this is the correct approach compared to approach two:
The linked PRs resolve the following two issues:
Approach two:Broadly this would be implemented as:
I strongly dislike this approach compared to solution one:
|
Team has agreed to proceed with approach one New issues created to implement - #1215 |
SPIKE to resolve #1179 and possibly also #1177
Currently when saving a page with an elemental area on it, the element data for all rendered elemental forms will be added to the POST request. This is a completely seperate code path from inline saving which uses FormBuilder/FormSchema
There are broadly two possible approaches here:
Timebox
3 days
Approach one:
Stop adding elemental data to the page POST request, and rely exclusively on using FormBuilder/FormSchema. On page save, block it on inline validating/saving the opened elemental forms
Approach two:
Keep elemental data in the page POST request. Somehow make the field validation message show in the correct place. Ineline elemental forms do not render by default so that'd need to be dynmically rendered when required.
Personally I (Steve) lean heavily towards approach one as it reduces complexity because there is now only one code path we need to look after, rather than two
New issues created
PRs
The text was updated successfully, but these errors were encountered: