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

D9/10 - Fix display of contact fields, if hidden in settings #962

Open
wants to merge 2 commits into
base: 6.x
Choose a base branch
from

Conversation

jitendrapurohit
Copy link
Collaborator

Overview

Contact field is displayed even if hidden in settings.

Before

To replicate:

  • Create a webform with 2 contacts.
  • Set the type of second contact to Organization and enable Org Name field.
  • Open the Build form, edit the 2nd Existing Contact element:
    -- Form Widget = Select
    -- Field to Lock = Name
    -- Locked Fields should be = Hidden
  • Visit the webform page.
  • Org Name element is still displayed.
    image
  • Choose an org name, the field is hidden correctly.
  • After reverting the option back to Choose Existing, the field remains hidden correctly.
    image
  • The issue appears to occur only when the page is visited or loaded.

After

Fixed. The field is hidden on page load too.

Technical Details

triggers the change event on page load.

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.

1 participant