Skip to main content
removed "Drupal" and tags from the title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Storing the value of a form submission in a hidden field or the database? (drupal 7)

edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
Mike2012
  • 1.8k
  • 1
  • 23
  • 39

Storing the value of a form submission in a hidden field or the database? (drupal 7)

So I have created a form for user's to store some documentation about a node they have created but I do not want this documentation to be shown on the node's main page. I would like the main page to have a link to either view or edit the form.

Now as far as I can tell there is no way to create a field that doesn't show up directly on the node create or viewing pages (this seems like it would be a misuse of a field anyway). Is there anyway that I could store what the user enters in this documentation form as part of the content without it being displayed on the node page or would I have to create a database table that associates a nid with the documentation string? Also, my form allows for use of filtered html in the form, will this be preserved if I store the filtered html as a string in the database?