- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
One click to prefill and submit a survey using URL fields
- phplist
- Topic Author
- Offline
- New Member
The link to LimeSurvey therefore needs to include the prefilled values (no problem there) and also the instruction to submit the survey immediately, without loading of the survey page with prefilled fields.
The benefit of this approach is that in a single click the data is recorded -- no opportunity for drop outs, overlooking the submit button (on small screens) etc.
Is this possible?
Open Source email marketing and analytics established in 2000. Available self-hosted, and with fully managed plans at phplist.com.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10634
- Thank you received: 3698
- manual.limesurvey.org/RemoteControl_2_API
- api.limesurvey.org/classes/remotecontrol...#method_add_response
Here are a couple of examples:
- www.limesurvey.org/forum/installation-a-...-sent-via-rc2#163916
- www.limesurvey.org/forum/can-i-do-this-w...-add-response#162815
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- phplist
- Topic Author
- Offline
- New Member
- Posts: 9
- Thank you received: 0
Open Source email marketing and analytics established in 2000. Available self-hosted, and with fully managed plans at phplist.com.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
In other words: If the submit button would be triggered via Javascript after loading the page, it would fit your requirement? BTW: What version of LimeSurvey is used?phplist wrote: and also the instruction to submit the survey immediately, without loading of the survey page with prefilled fields.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10634
- Thank you received: 3698
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- phplist
- Topic Author
- Offline
- New Member
- Posts: 9
- Thank you received: 0
jelo wrote:
In other words: If the submit button would be triggered via Javascript after loading the page, it would fit your requirement? BTW: What version of LimeSurvey is used?phplist wrote: and also the instruction to submit the survey immediately, without loading of the survey page with prefilled fields.
We're using LimeSurvey hosted (limequery.com). The JS method sounds like a potentially awkward workaround...
Open Source email marketing and analytics established in 2000. Available self-hosted, and with fully managed plans at phplist.com.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
What do you mean by writing "cleaner"? The question "Is it robust?" comes to my mind by every workaround in LS. I often wonder that is works without too many complains from the client browser side. A server side scripting which would allow triggering events (e.g. submitting or sending emails) would be great. A autosubmitt-setting on groups/questions or a special redirector questiontype (which is currently done via quota workaround) might be a feature request.tpartner wrote: I think the API would be cleaner and more robust than a JS solution to trigger the submit in LimeSurvey.
Since LimeSurvey GmbH is betting on pure LS SaaS business the external script hosted somewhere else seems to be not suitable for many customers they are aiming for.
The version is shown at the bottom of the page.We're using LimeSurvey hosted (limequery.com)
Try to click on the version number. The newer versions offer more infos about the installation.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10634
- Thank you received: 3698
I realize that you have a dislike/distrust for all workarounds but I think that they are one if the reasons that LimeSurvey is so flexible.The question "Is it robust?" comes to my mind by every workaround in LS.
My suggestion to use the API is a server-side solution.I often wonder that is works without too many complains from the client browser side. A server side scripting which would allow triggering events (e.g. submitting or sending emails) would be great.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
Which comes from the first time using LimeSurvey with a workaround in the old days. Hidden field with random number wasn't hidden for some browsers. Respondents entered numbers in the random number fieldtpartner wrote: I realize that you have a dislike/distrust for all workarounds
I'm aware of that. The distinction here was inside or outside of LimeSurvey. Reducing dependency with outside scripts might be a reason too.My suggestion to use the API is a server-side solution.
I second your reasoning with more robustness via API.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users