webform_civicrm
webform_civicrm copied to clipboard
d10 - Fix default load of yesno custom field
Overview
Fix default load of yesno custom field
Before
To replicate:
- Create a custom set and a field of data type yesno in CiviCRM.
- Add this field to a webform.
- Provide a default value to the webform element. Eg Yes.
- Load the form with the default cid
- Choose custom field value = No
- Submit the form. Notice the value is correctly saved to civicrm.
- Load the form again.
- The value
Yes
is loaded by default instead ofNo
existing on the contact.
After
Correct default value from the contact is loaded on the form.