This problem may be similar to #241981: default value losted on validation and #241827: %get[key] doesn't work for hidden fields but those refer to the 5.x Webform.

I have two text fields which default to %date and %server[REMOTE_ADDR]. Both are disabled and both populate correctly when the form is initialized. However, after Submit, neither field is stored in the database -> webform_submitted_data although all other fields are stored correctly.

The notification e-mail lists the disabled fields but without values.

If I make these fields "mandatory" and disabled, then the form validation states that the fields are required and sets their value to empty. Of course, since they are disabled, I can't enter anything.

This is a fresh install on D6.2 - not an upgrade.

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

There is a patch posted in #223388: %get[], tokens do not work in disabled or hidden fields, please review :)