Load data from custom table

Mehr
8 Monate 2 Wochen her #155499 von malp
malp erstellte das Thema Load data from custom table
Hello, is there a way to pre-fill an input field with data loaded from a custom db table?

I.e.: I have a database table with some user's information and I'd like to precompile some input fields with these info (the survey is not public). Then, the user can edit the info if they are not correct/updated.

Is this possible without using ajax?

Thank you

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
8 Monate 2 Wochen her - 8 Monate 2 Wochen her #155506 von tpartner
tpartner antwortete auf das Thema: Load data from custom table
There is no built-in facility to access external databases.

You may be able to use the RemoteControl 2 API to load the data into token attributes - manual.limesurvey.org/RemoteControl_2_API

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Letzte Änderung: 8 Monate 2 Wochen her von tpartner.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
8 Monate 2 Wochen her #155518 von holch
holch antwortete auf das Thema: Load data from custom table
Maybe you can use the token table with custom attributes for that? Depends on how you invite respondents.

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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
8 Monate 2 Wochen her #155534 von malp
malp antwortete auf das Thema: Load data from custom table
Thank you both.
Yes, I could use the token table, as suggested by holch, but reading ls documentation I didn't understand where I have to insert the {TOKEN:..} tag to fill the question's field.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
8 Monate 2 Wochen her #155538 von tpartner
tpartner antwortete auf das Thema: Load data from custom table
Depending on the question type, you can put something like {TOKEN:ATTRIBUTE_1} in the "Default answer" field.

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

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha