Can i show outside content as a Text Question

More
1 month 1 day ago #176910 by soubhikbasu
soubhikbasu created the topic: Can i show outside content as a Text Question
Hi,

How can i show any outside content as a Text in lime survey dynamically(its vary person to person)?

Please Log in or Create an account to join the conversation.

More
1 month 22 hours ago #176912 by holch
holch replied the 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?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 month 16 hours ago #176916 by soubhikbasu
soubhikbasu replied the 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

Please Log in or Create an account to join the conversation.

More
1 month 10 hours ago #176958 by holch
holch replied the 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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
1 month 5 hours ago #176980 by tpartner
tpartner replied the 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.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #176997 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177553 by soubhikbasu
soubhikbasu replied the topic: Can i show outside content as a Text Question
Which plugin is using to do that?

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177556 by DenisChenu
DenisChenu replied the 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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177560 by soubhikbasu
soubhikbasu replied the 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?

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177562 by holch
holch replied the 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...

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago - 2 weeks 2 days ago #177563 by soubhikbasu
soubhikbasu replied the 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
Last Edit: 2 weeks 2 days ago by soubhikbasu.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago - 2 weeks 2 days ago #177589 by DenisChenu
DenisChenu replied the topic: Can i show outside content as a Text Question

soubhikbasu wrote: Hi,

How can i show any outside content as a Text in lime survey dynamically(its vary person to person)?

Original question …

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 weeks 2 days ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago - 2 weeks 2 days ago #177594 by soubhikbasu
soubhikbasu replied the topic: Can i show outside content as a Text Question
Thanks, this will help me to solve my problem, but how can i update email template runtime, because the id "65" is not a constant value, its may vary.

Because when i use limesurvey remotecontrol API from another application, this id will change. So need to update this value in emailtemplate or in question at runtime.

How can i do this?

one more thing need help from you please help me

ATTRIBUTE_1 = question code ? or anything else?
Last Edit: 2 weeks 2 days ago by soubhikbasu.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177598 by holch
holch replied the topic: Can i show outside content as a Text Question
I am out. No clear description what is needed and what needs to be done. Can't follow anymore. It can't be that difficult to give a good example of what will be done, can it?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #177600 by soubhikbasu
soubhikbasu replied the topic: Can i show outside content as a Text Question
I am trying to Send survey URL to the participants dynamic Like:

participant1
dev.example.com:8080/latestlimesurvey/index.php/556852/oppid/65?newtest=Y&show=1

participant2
dev.example.com:8080/latestlimesurvey/index.php/556852/oppid/89?newtest=Y

participant3
dev.example.com:8080/latestlimesurvey/index.php/556852/oppid/225?newtest=Y&show=1

By using "RemoteControl 2 API"

How can i do this?

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!