Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Fill fields with (not submitted) data, which is already written in the form (JS)

  • timmyfromspace
  • timmyfromspace's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 6 months ago #245317 by timmyfromspace
Your LimeSurvey version: 3.28.40+221129
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Own, but nothing special

Dear limesurvey,

i would like to know, if this is technically possible with JS in Limesurvey.

I got survey page with multiple questions groups + questions in a table format.

Let's say one is "Journey1" with one cell and coloumns like DatetimePicker and one free text field with "Start(Adress)".

Then i have another question group and questions in table style with this:

"Journey 1 (Details)" with multiple cells (not the matter here right now) and more or less the same coloumns, some different.

But also one free text field with "Start(Adress). A co worker wants to extract the text from the free text field above and paste it automatically in the "Start(Adress)" below,
because it's the same page and it would be a QoL feature for easier filling out the form.

But without a submit or new button. Is this even possible? We talked about this before to some extent and i thought i found something in the forum here, which said that isn't possible about pre-filling live / automatically.

I don't wanna post code here yet, because even with a transfer-button, it didn't work. The form itself is a bit more complex JS-code from my coworker and i'm not done with that yet. I will try that before with a simple code / example.

But changing the JS code, someone suggested a event-handler, which could detect a change into a field. But this could clash with Limesurveys own event-handler?

If that's the case, could this work with a transfer button?

Has somebody done anything comparable? Or easier/better solutions?

Thanks in advance.

Best Regards

Tim

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 6 months ago #245336 by Joffm
Hi,
you may pipe it (ExpressionManager) into the subquestion text of the second array.
Here additionally with an "inserted-header"
 

You do not need the address a second time in the dataset
This field is not thought to be changed.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 6 months ago - 1 year 6 months ago #245391 by tpartner
Also, asking us for modifications to your existing JavaScript without providing code examples is impossible.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 6 months ago by tpartner.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 6 months ago #245417 by holch
Off topic:

3.28.40+221129


You should consider an update at least to the latest LS 3.x version. Your installation hasn't received updates for about 8 months now.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose