Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Can tokens drive survey general settings?

More
10 years 1 month ago #122731 by ChacoKevy
We have customers who would like our surveys to appear as if were a page on their own company's employee portal, instead of my company's. Is there any way to use token attributes to drive general survey settings such as Admin name, Admin email, Template, etc? If no, it would seem I would need to copy the survey each time a new customer wants something personalized.
Thanks!
-CK
The topic has been locked.
More
10 years 1 month ago #122732 by gabrieljenik
You could try to update some visual aspects using JQuery.
But some other settings, as adminemail, will be hard to update.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
10 years 1 month ago #122735 by tpartner
For the visual aspects (look-and-feel), you could place the customer name in a token attribute and then use something like this in startpage.pstpl. This would give you a customer-specific class for the <body> element so all child elements could be styled accordingly.

Code:
<body class="customer-{TOKEN:ATTRIBUTE_1}">

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
10 years 1 month ago #122742 by DenisChenu
And if it's a big customer : use a specific survey and a specific template.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
10 years 1 month ago #122751 by ChacoKevy
Specific template, absolutely - but a specific survey? I'm not sure I understand why that's a good idea. Since the surveys would be identical, I was hoping to keep them in the same survey so as to not have to deal with multiple token and response tables on the back end nor multiple csv token file imports on the front end.
Thanks!
CK
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose