-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow overriding label for values #37
base: main
Are you sure you want to change the base?
Conversation
src/collective/volto/formsupport/restapi/services/submit_form/field.py
Outdated
Show resolved
Hide resolved
src/collective/volto/formsupport/restapi/services/submit_form/post.py
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 7920161992Details
💛 - Coveralls |
# Conflicts: # src/collective/volto/formsupport/restapi/services/submit_form/post.py
… needs to override this for some reason in the future
# Conflicts: # src/collective/volto/formsupport/restapi/services/submit_form/post.py # src/collective/volto/formsupport/tests/test_send_action_form.py
# Conflicts: # src/collective/volto/formsupport/restapi/services/submit_form/post.py
While getting this up-to-date, I noticed we are now removing fields who's IDs don't exist on the form block definition (great!). This logic needs updating to account for custom_field_id being sent rather than the original field ID |
# Conflicts: # src/collective/volto/formsupport/tests/test_send_action_form.py
@JeffersonBledsoe Add some tests please |
Ah ok, exists already, just opened old version of this pr in some way :D |
Haha, thanks for checking! 😄 I look forward to the feedback! |
This PR introduces the concept of a 'display value' to change how a value will appear in an email or on a form. For example, a 'Single choice' field could have submitted values of
['A', 'B', 'C']
, but are shown to the user as['Option A', 'Value B', 'Option C']
.Mostly tested in production with the 'Yes/ No widget' in volto-form-block, but should work for other fields too!
Requires collective/volto-form-block#85 for frontend