The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: Setup a "budget" question type

Setup a "budget" question type 2 Jahre 4 Monate her #54668

  • starmonkey
  • starmonkeys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Hi Guys,

I'm evaluating the use of limesurvey to manage a bunch of "application forms" for a client. Many forms share the data input of a "budget", where the applicant will list the income/expenses of their application as per this example below:

budget-example.png


What I'm wondering is - how possible is this within the context of the LS framework, and has something similar been done already?

I was originally hoping I could approximate this with multiple numerical inputs (eg two fields: income + expenses could suffice) but that assumes a predefined list of options, whereas a "budget" can have any number of abitrary (per applicant) options with values.

My next step is to read up on creating my own custom question type which I suspect is the way forward.

cheers,
SM
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Setup a "budget" question type 2 Jahre 4 Monate her #54691

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2853
  • Dank erhalten: 423
  • Karma: 243
What about using 3 (or 4) multiple-short-text questions and then a little CSS magic to display the questions side by side. This seems (to me) to be easier than creating a new question type.

It should be fairly easy to map the responses in analysis if you give the questions the same answer codes.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: starmonkey

Re: Setup a "budget" question type 2 Jahre 4 Monate her #54705

  • starmonkey
  • starmonkeys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Thanks for the reply.

I had a quick go at setting that up but the problem is that each "row" of the incomes/expenses has 2 values - the text description of each item and its monetary value, eg:

Widgets - $34.99

What I was thinking was that you could define 3 fields/questions:
  1. Incomes - long free text
  2. Expenses - long free text
  3. Budget Totals - multiple numerical input

The 2 x free text questions could be css'd to align side-by-side, and the budget totals question could have 3 subquestions - Total Income, Total Expenses, Net Budget.

The value of "Net Budget" could be computed automatically from the two totals.

Come to think of it, so could the Total Income/Expenses fields since it can assume each line of the textarea fields have a numerical value in there somewhere.

So yeh - a little JS tinkering and we've have a system in place that wouldn't be too hard to use?

// SM
Letzte Änderung: 2 Jahre 4 Monate her von starmonkey.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Setup a "budget" question type 2 Jahre 4 Monate her #54710

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2853
  • Dank erhalten: 423
  • Karma: 243
Yep, that works too but if you want the multis side-by-side you should be able to hide any unwanted text desriptions with CSS/JavaScript.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Setup a "budget" question type 2 Jahre 4 Monate her #54715

  • starmonkey
  • starmonkeys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Ah yes I understand now what you mean - cheers for the help!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Setup a "budget" question type 3 Monate 3 Wochen her #91612

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 46
  • Dank erhalten: 1
  • Karma: 2
Ay mates - I know this post is old. But would some lend a non-coder a hand and post the CSS that did the trick here? Scouring the forum for the search term "side by side" and striking out.
Any help would be much appreciated.
-Nebraska
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.195 Sekunden
Donation Image