Running 4.7 w/ Webform. Works fine.

I would like to know if there is a way to create a form that does NOT display the table field names (e.g., "textarea_1149021736") on the submission form seen by end-users?

Thanks.

-ron

Comments

Kato’s picture

Just leave that field blank. You can edit that field to make it say whatever you want...or just leave it blank and then you can have just the textbox or whatever it is you are doing.

-------------------------------------------------------
http://gamersides.com
http://ngl.gamersides.com

SomebodySysop’s picture

I thought it was necessary to have the field names because they are used in the Webform tables when the data is stored.

Specifically, it says:

Name: textarea_1149021736*
Name of the field. This is used as a descriptive label and as the key when saving data in the database.

You're saying no problems if I space that out?

Thanks so much!

-ron

Kato’s picture

I was wondering about it too...but it seems to be working for me. I just started using it myself a week or so ago, but everything seems to have worked so far. Set one up and do some test submissions with it and see what you get.

-------------------------------------------------------
http://gamersides.com
http://ngl.gamersides.com

escoles’s picture

If I made the name field blank, the field wouldn't pass validation. I.e., I can enter text in the text field, and the module tells me that the field requires input.

That part of the module should really be reworked. There's just no good reason for the "name" that's displayed to ever be the same as the element ID. The displayed name should always be something explanatory, and there's no way that "text_19834710172497" is explanatory of anything. "text_19834710172497_First-Name" is a little better, but still ugly as sin. Better would be "First Name". But the supporting matter on the form leaves the sense that this might provide problems with future forms.

At a minimum, there should be a clear, unambiguous and distinct field for the dispalyed name. Failing that, the de facto displayed name should be enclosed in a span container and tagged with an ID element so it can be hidden using CSS. That's more or less impossible now, because the DOM container it resides within doesn't close until after the INPUT tag.

That aside, it's an interesting module. I'll shortly be testing whether there's an easy way to pump its output back into Drupal to populate newsletter subscriptions.

emdeex’s picture

You only need to have a plain english description for your field name. For example an email field can have a name of "Your Email Address:".

Webform does default to a field name like "text_1983471017249" but its only a suggestion, you can just overwrite it with a plain english name including spaces etc.