When I define a hidden default value on a form, it does not appear on add or edit. When I preview my node, my hidden taxonomy element appears.

Why do you use the

... && !isset($form_state['node_preview'])) {

in your alter condition ?

Comments

bzzz’s picture

I have the same problem. And also don't understand why that condition is used.

It seems to works without it. Or may be I don't know any problems without this condition? Please answer.

hillaryneaf’s picture

Any update on this bug (whether or not it will be fixed)? It's an issue on my site as well...

bradweikel’s picture

Title: Display hidden taxonomy on preview » Hidden vocabulary values displayed on preview
Version: 6.x-1.1-beta2 » 6.x-1.x-dev
Status: Active » Fixed

Checked in a fix.

Status: Fixed » Closed (fixed)

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

Alice Heaton’s picture

Hello,

Just for information : fixing this issue created another one : #1005944: Reset of user taxonomy terms choice upon preview. I have written a patch which fixes the new issue without re-introducing this one : http://drupal.org/node/1005944#comment-6003648

I thought people here might want to double check the patch to confirm it does not re-introduce this issue.

Thanks.