HI

I have a number of hidden fields on a multistep webform I've created. While these hidden fields are not displayed on the form, they are displayed on the Preview page. Should they not be hidden on the Preview page as well?

I tried placing the hidden fields in a Container and adding a css class to that container, so I could hide it with CSS, but the class is not being applied to the container in the HTML on the Preview page, so I can't hide them.

Any ideas?

Thanks

F

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frankdesign created an issue. See original summary.

jrockowitz’s picture

I agree that hidden and value elements should not be visible on the preview page.

An immediate workaround is to #2888615: Allow preview to exclude elements

frankdesign’s picture

Thanks jrockowitz

Just updated to the dev version to access the Preview page include/exclude options for each field. Works a treat.

However as a side note, I notice that the code output for the progress bar has been completely changed in the Dev module. Is that the way the main module is going to go? If it is, I might as well update my CSS now. Let me know

Thanks

F

jrockowitz’s picture

The new progress bar is using https://nigelotoole.github.io/progress-tracker/ which can be disabled under Admin settings which will revert the progress bar to the old basic design.

jrockowitz’s picture

Status: Active » Needs review
FileSize
0 bytes

I reviewed the Webform module for D7 and it displays hidden and value elements on the preview page and lets you hide it via the preview settings. The one thing missing from D8 was the ability to set a #title for hidden and value elements. The attached patch fixes this.

Status: Needs review » Needs work

The last submitted patch, 5: hidden_element_are-2889694-5.patch, failed testing. View results

jrockowitz’s picture

Status: Needs work » Needs review
FileSize
795 bytes

  • jrockowitz committed 95ed8a9 on 8.x-5.x
    Issue #2889694 by jrockowitz, frankdesign: Hidden Element are displayed...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.