Submit querystring data with Bizform

Dimitris Rakopoulos asked on December 1, 2014 11:53

Hello,

I have a bizform and I want to pass to it some querystring fields. What is the way to do this?

I am using version 7.

Thank you, Dimitris

Correct Answer

Sandro Jankovic answered on December 1, 2014 15:04

Hi Dimitris,

Thank you for the additional details. In the field configuration for the BizForm you would set a querystring macro as the default value: {%source%}

You can also hide this value in the editing form, but the data will still be pulled in and saved from the querystring. I believe this will accomplish what you have described. If you have any additional questions or concerns just let me know.

Best Regards,

Sandro

2 votesVote for this answer Unmark Correct answer

Recent Answers


Sandro Jankovic answered on December 1, 2014 13:56

Hi Dimitris,

I may not have all of the details about your intention but I believe querystring macros will accomplish what you have described. If not, please let me know if you have any additional information that would help us determine what would be the best approach.

Best Regards,

Sandro

0 votesVote for this answer Mark as a Correct answer

Dimitris Rakopoulos answered on December 1, 2014 14:19

Hello Sandro,

thank you for the quick response. Here is what I want to accomplish. I have a form and I will send people to this form from various sources (Google Display Network, Facebook, Email, etc.). So, I want to refine a querystring on the links to this form that will denote the source. For example http://www.domain.com/form.aspx?source=GDN

The users comes to the form and fills it. On the data (on the CMS) I want to have a field called source that will have the value of the querystring. I guess I need a field on the Bizform. Should this be hidden on the live site? I guess it should. But how will it hold the data from the querystring? And how will I set its' value when I develop it?

Is it more clear now?

Any help is appreciated! Dimitris

0 votesVote for this answer Mark as a Correct answer

Dimitris Rakopoulos answered on December 6, 2014 00:22

Hello Sandro,

it worked like a charm!

Thank you, Dimitris

0 votesVote for this answer Mark as a Correct answer

Christian Kuczkowski answered on August 30, 2016 19:38

I know this is an old KB, but attempting the same on Kentico 8.2 didn't work. The form control must exist on the public page in order for the query string parameter to be recorded into the form data. The query string was lost without out it.

I was able to hide the form control thru CSS.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.