I have a problem with one of the fields in a notification email for CiviCRM Webforms.
I’m using a Drupal Webform which includes CiviCRM contact fields. These fields include a number of fields that make up the postal address.
One of these fields is the State/Province. The key is: civicrm_1_contact_1_address_state_province_id
I’ve included that field in the Webform email: [webform_submission:values:civicrm_1_contact_1_address_state_province_id]
The problem is that when the email is sent, the value for the State/Province is shown as “1644” instead of “Victoria”.
All the other Webform submission values in the email are correct.
This was working as expected under Drupal 7 but we recently migrated to Drupal 9 and we are now seeing the wrong value for the State/Province.
The strange thing is that if we do a resend of the email, the correct value is shown.