- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Submit a user to external page with custom field as identifier (e.x promo code)
8 months 1 week ago - 8 months 1 week ago #230259
by bathanus
Submit a user to external page with custom field as identifier (e.x promo code) was created by bathanus
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.23+220705
Own server or LimeSurvey hosting: encuentasit.limesurvey.net/
Survey theme/template: custom_vanilla
==================
Hi, i need help i am new with lime Survey.
after completed the survey i want send a user to a external link, this is a promotion that the customer wins after complete the survey, but the promotional code must be unique for each user, i get a idea adding a custom field to the participants DB and then using this custom code loaded previusly in the external link.
Example:
exit url : www.promotionalpage.com/{code }
i just do it previusly i load a participant with the custom code field code filled with 'codeExplample' but the exit url configurated at text element get a error:
www.promotionalpage.com/span class='em-expression em-haveerror' span class='em-error' title=' ' span title='Undefined variable' class='em-var em-var-error' code span span span
i delete "< >" of span to show the error correctly.
someone have any idea? thanks.
Your LimeSurvey version: 5.3.23+220705
Own server or LimeSurvey hosting: encuentasit.limesurvey.net/
Survey theme/template: custom_vanilla
==================
Hi, i need help i am new with lime Survey.
after completed the survey i want send a user to a external link, this is a promotion that the customer wins after complete the survey, but the promotional code must be unique for each user, i get a idea adding a custom field to the participants DB and then using this custom code loaded previusly in the external link.
Example:
exit url : www.promotionalpage.com/{code }
i just do it previusly i load a participant with the custom code field code filled with 'codeExplample' but the exit url configurated at text element get a error:
www.promotionalpage.com/span class='em-expression em-haveerror' span class='em-error' title=' ' span title='Undefined variable' class='em-var em-var-error' code span span span
i delete "< >" of span to show the error correctly.
someone have any idea? thanks.
Last edit: 8 months 1 week ago by bathanus. Reason: some info missed
Please Log in to join the conversation.
8 months 1 week ago #230260
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Submit a user to external page with custom field as identifier (e.x promo code)
If using custom attributes in the participants table, they are retrieved something like this - {ATTRIBUTE_1}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
8 months 1 week ago #230262
by bathanus
Replied by bathanus on topic Submit a user to external page with custom field as identifier (e.x promo code)
like i post in the image my end url in this case is:
www.example.com/{ATTRIBUTE_1
}
and the participant custom field name is customCode but i get the same error. undefined attibute when i finish the survey.
i am doing something wrong?
and the participant custom field name is customCode but i get the same error. undefined attibute when i finish the survey.
i am doing something wrong?
Attachments:
Please Log in to join the conversation.
Less
More
- Posts: 929
- Thank you received: 206
8 months 1 week ago #230263
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Submit a user to external page with custom field as identifier (e.x promo code)
I think you have to use: {TOKEN:ATTRIBUTE_1}
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: bathanus
Please Log in to join the conversation.
8 months 1 week ago #230264
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Submit a user to external page with custom field as identifier (e.x promo code)
In my opinion you should use {TOKEN:ATTRIBUTE_1}
And: It is better to generate the end-url in an equation (myEndUrl) before.
In the end-url you only enter {myEndUrl}
Joffm
And: It is better to generate the end-url in an equation (myEndUrl) before.
In the end-url you only enter {myEndUrl}
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
8 months 1 week ago #230265
by bathanus
Replied by bathanus on topic Submit a user to external page with custom field as identifier (e.x promo code)
thanks for all support i do it.
{TOKEN:ATTRIBUTE_1} do the job.
{TOKEN:ATTRIBUTE_1} do the job.
Please Log in to join the conversation.