Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow title display of static contact element to be invisible or none #916

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

AsylumSeekersCentre
Copy link
Contributor

Overview

This twig template change enables the expected behaviour of setting the element Title Display to 'invisible' or 'none'.

Before

If you create a webform with a CiviCRM Contact element, set the Form Widget to Static, and set the Title Display for that element to 'invisible' or 'none', the Title is still displayed.

After

Setting the Title Display to 'invisible' will result in the label gaining the hidden attribute. Setting the Title Display to 'none' will omit the label from the output.

Technical Details

This changes two lines of the Twig template, adding to one existing conditional so the label will be omitted if the #title_display is 'none', and then adding a new conditional to decide whether the label should get the hidden attribute.

@jitendrapurohit jitendrapurohit merged commit ad7f82b into colemanw:6.x Oct 29, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants