Check out the LimeSurvey source code on GitHub!

Additional Use for Submit Button

More
5 years 10 months ago #58728 by Mike1985
My Customer uses another database that needs to know when someone has submitted a form. I tried convincing her to 'pull' the information from her end but she wasn't having any of that!

How would I go about doing this? Line;

$surveymover .= "\t<input class='submit' type='submit' accesskey='l' onclick=\"javascript:document.limesurvey.move.value = 'movesubmit';\" value=' "


in index.php seems to be the "submit" button. Is it possible to edit that so that I can get it to do it's original job plus run a little php script.

Sorry for being a bit... vague. I can't really think straight at the moment.

Mike

Please Log in to join the conversation.

More
5 years 10 months ago #58733 by holch
You could use the end url feature for this, I guess. You can pass on the id of the responder via the end url to a external php script.

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 to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #58740 by tpartner
If you don't want to redirect at the end or have another use for the end URL, you can fire a PHP script with a little JavaScript in the end page - www.limesurvey.org/en/forum/can-i-do-thi...on-of-a-survey#55975

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 10 months ago by tpartner.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form