• Resolved hastibe

    (@hastibe)


    After updating from 2.0.54 to 2.0.56, our HTML code (a href, etc. to make a link) in the “Edit Choices” text of a checkbox field is no longer displaying as a link on the front-end of the form, but is just showing the raw HTML code on the front-end now.

    Is this a bug, or is this an intentional change (related to the security fixes in 2.0.56)?

    Being able to include a link (e.g. “Learn more here.”) as part of the checkbox (or other field) choice text was an elegant way to include additional information, and it would be terrific if there was a safe way to still do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I have the same issue on my page after an update to the latest plugin version. Can anybody help with this?

    Thanks and best regards!

    This issue still persists in the current UM version 2.1.1. It is caused due to HTML escaping. In order for the links to be displayed correctly you have to disable HTML escaping here: ultimate-member\templates\gdpr-register.php –> l.32. You can use this code for it:

    <span class="um-field-checkbox-option"><?php echo $confirm; ?></span>

    You might also need to disble it here: ultimate-member\includes\core\class-fields.php –> l.60. Replace the line with this code:

    <span class="um-field-checkbox-option"> <?php echo $title; ?></span>

    • This reply was modified 5 years, 3 months ago by nadine.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ninablue

    You can use this filter hook to modify the checkbox title:

    + um_field_checkbox_item_title
    $um_field_checkbox_item_title
    $key
    $value
    $field_settings

    As for the GDPR Register template, you can override it with the custom template to your Theme so it won’t get overridden on Plugin updates if you modify the core files. Please see: https://docs.ultimatemember.com/article/1516-templates-map

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML Code Not Displaying in 2.0.56 (from 2.0.54)’ is closed to new replies.