This code has been implemented and tested on cfdev21.com (using new content via Ryan for 3 form fields, size concatenated into a single upon submission): http://cfdev21.com/home.php?locale=en_US The custom2 field ("Color") is simply transformed in to a select box. The custom1 field is changed in to a hidden element and then 2 new select boxes are added for Fit/Sex and Size. Upon form submit these two values are combined in to the custom1 field's value and then the form elements are disabled so that the values don't submit. There is no submit button as this is not the BSD page, but we've tested by triggering submit on the form and catching the form state with a console.log statement. Sample custom1 submit values are: "womens small", "mens large", "womens xxl"
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
This looks great. Grammar nit: should be "Women's" and "Men's" throughout. Does this require QA?
We've tested on our side, I'll send a pull request to Paul so the code can get a sanity check and you can let us know if there are any questions. A quick note that the previous pull request we sent was not received (included Czech l10n updates). In short: * config.php has a new function to configure the form fields: bsdtools_custom_fields_to_select_data() * each string has been wrapped for localization (may need to be checked when the non-English forms are updated) * custom2 is transformed to select box using JS * two new fields are added into the page and combined into custom1 upon submit If you'd like, we can push this up to BSD for Mozilla to do a sample transaction and verify all fields come across as expected.
You need to log in before you can comment on or make changes to this bug.