Bootstrap escapes html in legends. See the below code and screenshot:

p1_vagsex:
    '#type': radios
    '#title': 'During the past 3 months, did you have vaginal sex (intercourse) with <u>[yamlform-submission:values:p1_name]</u>?'
    '#options':
      1: 'Yes'
      0: 'No'
    '#required': true
  p1_vagsxnum:
    '#type': number
    '#title':  'During the past 3 months, how many times did you have vaginal sex with <u>[yamlform-submission:values:p1_name]</u>?'
    '#min': 0
    '#states':
      visible:
        ':input[name="p1_vagsex"]':
          value: 1
      required:
        ':input[name="p1_vagsex"]':
          value: 1

Here is the legend in action:

Only local images are allowed.

Note: This issue is what I incorrectly summarized in https://www.drupal.org/node/2797785.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robpowell created an issue. See original summary.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Closed (won't fix)