- Posts: 19
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can i show outside content as a Text Question
- soubhikbasu
- Topic Author
- Offline
- New Member
Less
More
5 years 5 months ago #176910
by soubhikbasu
Can i show outside content as a Text Question was created by soubhikbasu
Hi,
How can i show any outside content as a Text in lime survey dynamically(its vary person to person)?
How can i show any outside content as a Text in lime survey dynamically(its vary person to person)?
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11649
- Thank you received: 2739
5 years 5 months ago #176912
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can i show outside content as a Text Question
what is "outside" content? Where do you get this content from, where is it stored?
How will Limesuvey know which person to show which content?
And then, last but not least: Which version of LS are you using?
How will Limesuvey know which person to show which content?
And then, last but not least: Which version of LS are you using?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- soubhikbasu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 years 5 months ago #176916
by soubhikbasu
Replied by soubhikbasu on topic Can i show outside content as a Text Question
Hello,
1. Outside content: Means calling an URL with some params which return data.
2. Means in limesurvey URL supply some id, with this id contents, will dynamic person to person.
3. Lime Survey Version: Version 3.15.3+181108
1. Outside content: Means calling an URL with some params which return data.
2. Means in limesurvey URL supply some id, with this id contents, will dynamic person to person.
3. Lime Survey Version: Version 3.15.3+181108
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11649
- Thank you received: 2739
5 years 5 months ago #176958
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can i show outside content as a Text Question
You can make an Ajax-Call, like for any other web application. That has little to do with Limesurvey, but rather with Ajax / Javascript.
If the content is different per respondent id, but otherwise static, you could put custom attributes into the token table and call it from there.
If the content is different per respondent id, but otherwise static, you could put custom attributes into the token table and call it from there.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
5 years 5 months ago #176980
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 Can i show outside content as a Text Question
If making an AJAX call to another server, you may run into cross domain issues.
Maybe an iframe would be a better option.
Maybe an iframe would be a better option.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 5 months ago #176997
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can i show outside content as a Text Question
Without ajax or iframe : only plugin have the solution
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- soubhikbasu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 years 4 months ago #177553
by soubhikbasu
Replied by soubhikbasu on topic Can i show outside content as a Text Question
Which plugin is using to do that?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 4 months ago #177556
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can i show outside content as a Text Question
Plugin event : beforeQuestionRender : make tour call with curl, add te content (filtered) to text.
manual.limesurvey.org/BeforeQuestionRender
manual.limesurvey.org/BeforeQuestionRender
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- soubhikbasu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 years 4 months ago #177560
by soubhikbasu
Replied by soubhikbasu on topic Can i show outside content as a Text Question
Thank, but this content needs to show dynamically by some id or something else by passing these in the URL runtime using from "RemoteControl 2 API" just before using
mail_registered_participants(string $sSessionKey, integer $iSurveyID, array $overrideAllConditions = array());
How can i do this?
mail_registered_participants(string $sSessionKey, integer $iSurveyID, array $overrideAllConditions = array());
How can i do this?
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11649
- Thank you received: 2739
5 years 4 months ago #177562
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can i show outside content as a Text Question
If you would explain a little bit more where this content comes from, how dynamic it is an how you would attribute it to respondents. currently it is a lot of guess work and throwing key words at you, because we have no idea bout the background of this content and on what basis it would be shown in the survey.
Maybe there is actually a super simple solution. Or not. Who knows with the information provided...
Maybe there is actually a super simple solution. Or not. Who knows with the information provided...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- soubhikbasu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 1
5 years 4 months ago - 5 years 4 months ago #177563
by soubhikbasu
Replied by soubhikbasu on topic Can i show outside content as a Text Question
I am using RemoteControl 2 API.
How can I update my survey URL(Add some extra params and value dynamically) before sending to the participants?
Like:
Original Survey URL: dev.example.com:8080/latestlimesurvey/in...php/556852?newtest=Y
>>
Want to modify like, dev.example.com:8080/latestlimesurvey/index.php/556852/oppid/65?newtest=Y&show=1
Note: oppid/65(its may vary as per requirement) and show=1 (its also may vary as per requirement)
For Add Participant using:
add_participants(string $sSessionKey, integer $iSurveyID, array $aParticipantData, boolean $bCreateToken = true);
For Sending Mail Using:
mail_registered_participants(string $sSessionKey, integer $iSurveyID, array $overrideAllConditions = array());
With this id, I am calling an ajax to get the data by web service from another Server.
Thanks in advance
How can I update my survey URL(Add some extra params and value dynamically) before sending to the participants?
Like:
Original Survey URL: dev.example.com:8080/latestlimesurvey/in...php/556852?newtest=Y
>>
Want to modify like, dev.example.com:8080/latestlimesurvey/index.php/556852/oppid/65?newtest=Y&show=1
Note: oppid/65(its may vary as per requirement) and show=1 (its also may vary as per requirement)
For Add Participant using:
add_participants(string $sSessionKey, integer $iSurveyID, array $aParticipantData, boolean $bCreateToken = true);
For Sending Mail Using:
mail_registered_participants(string $sSessionKey, integer $iSurveyID, array $overrideAllConditions = array());
With this id, I am calling an ajax to get the data by web service from another Server.
Thanks in advance
Last edit: 5 years 4 months ago by soubhikbasu.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 4 months ago - 5 years 4 months ago #177589
by DenisChenu
Current question
Don't understand …
Eles, for example : you can use attribute ?
If you want user have oppid/65 (or &oppid=65), then construct you url in mail template
@@SURVEYURL@@?oppid={ATTRIBUTE_1}
You set the attribute according to your need.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can i show outside content as a Text Question
Original question …soubhikbasu wrote: Hi,
How can i show any outside content as a Text in lime survey dynamically(its vary person to person)?
Current question
How can I update my survey URL(Add some extra params and value dynamically) before sending to the participants?
Don't understand …
Eles, for example : you can use attribute ?
If you want user have oppid/65 (or &oppid=65), then construct you url in mail template
@@SURVEYURL@@?oppid={ATTRIBUTE_1}
You set the attribute according to your need.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 4 months ago by DenisChenu.
The topic has been locked.