Hidden Values - Post ID 189872

User 451981 Photo


Registered User
92 posts

Hello everyone:
I have been playing around with the new web form builder. In the form options tab there is a field for hidden values. I assume the name is a label that I define. What are the values that are supposed to go in to the value field? Is there a defined set of variables? What I would like the form to send me along with all the stuff filled out is the IP address of the sender. Can I use the _fromaddress_ variable that is in the emailing side of things? I haven't quite finished my test form and sent it to myself yet.
Thanks
Raj

My Christmas tree is up at www.logicresources.com
If you stand by,the ocean, it sounds like you are holding a conch to your ear.
User 629005 Photo


Ambassador
2,174 posts

Not sure about the answer to your question(s), but I did notice that the info for the "hidden fields" shows when viewing the page source code... Shouldn't this info be "hidden" from view completely? Or am I misunderstanding what the hidden fields would be used for?
Living the dream, stocking the cream :D
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Raj & Phil,

If I recall correctly (I only used it a few times so maybe others use it different ways) I used it to put in a field that didn't show on the site that would tell me where the information came from. It would be similar to what people do in magazine advertising where they ask you for the code from the ad that you are calling about to see what publication or medium is working best for them.

This way you can duplicate the form multiple times and just change that field and upload a different copy of it to different websites. When you get the form results it will come with whatever you have entered into the value field (which I don't think had too many restrictions in the old version, not sure on this one). This would then tell you which website they sent it from so you can tally which sites are working well and which ones aren't.

@Raj: When you get the form results it should already automatically give you the time/date/IP stamp from each results page. Have you already tried it and you're not getting this info? If that's the case let us know as I'm pretty sure Scott said it should work always now, unlike the flash version which only worked if you "didn't" alter the results email at all.

Hope that helps :)
User 451981 Photo


Registered User
92 posts

OK that makes sense. No Joanne I hadn't gone all the way through and uploaded the form and tried it. I am just starting mucking about with it and going through the manual etc. There wasn't a lot of info in the manual about it so I wondered if this was just something that everyone knew about except me. (Happens a lot)
Anyway if, as you say, the email portion of it gives me that info then I am more than happy.
Thanks again Joanne
Raj
If you stand by,the ocean, it sounds like you are holding a conch to your ear.
User 38401 Photo


Senior Advisor
10,951 posts

You're quite welcome Raj, let us know if you need any other assistance or have any other questions :)
User 2286609 Photo


Registered User
3 posts

I am trying to create a form that will give me a text file that I can import into and Excel template. There are some columns on the template that need to be skipped. For example, the first field on the form ghost column a, the second field to column B, but then the third field should go to column D. Can I put in a hidden value of blank so that he will skip column C on the spreadsheet and put the value in the third field from the form into column D? If so, how do I do that?
User 187934 Photo


Senior Advisor
20,181 posts

I think it would be easier to import all the data into an Excel sheet using a macro or VB then use more vb or another macro to format the template the way you want.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2532127 Photo


Registered User
2 posts

Hi All,

I need to assign a code (1, or 2) to each person who visits my site, and fills in a form. I need this hidden variable to then get saved, along with the other form variables, to a database. I've added an HTML element to my form, and using some javascript, can get the randomisation bit working, using the code below:

"<script language='Javascript'><!--
var rand_no = Math.floor((10-4)*Math.random()) + 5;
--></script>"

I thought perhaps the place to make it work was in "form.cfg.php". But, I haven't managed to get it right yet. Can anyone offer any pointers?

Frank
User 187934 Photo


Senior Advisor
20,181 posts

I have done this type of thing but replace the myfornname.php with my own to process the variables.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2532127 Photo


Registered User
2 posts

Thanks for the reply Eric. I'll have a go. Though, if you happen to come across an example of what you did, I'd appreciate it!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.