webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

d10 - Fix default load of yesno custom field

Open jitendrapurohit opened this issue 8 months ago • 0 comments

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 image
  • Submit the form. Notice the value is correctly saved to civicrm.
  • Load the form again.
  • The value Yes is loaded by default instead of No existing on the contact.

After

Correct default value from the contact is loaded on the form.

jitendrapurohit avatar Jun 11 '24 10:06 jitendrapurohit