Is there a way to add backend to LimeSurvey? - html

So I am making a survey and I want users to give me a certain temperature. There is a subsequent question about whether the temperature is within an acceptable range or not, and I would like that to be determined immediately after the user gives the temperature. I do not want the user to also go and answer the range question, I want it automatically answered, but I do not know how I am going to do this using LimeSurvey. Does anyone have any ideas?

Related

Power Apps, how to set a variable for all users

I was tasked to make an app for my company that allows it's users to make an appointment at the office to limit the number of people present at the same time.
I have to make it in Microsoft Power Apps.
Can someone give me a hint on how to setup a variable for the user that will stay at that value even after the app is closed. I need them to have a limit of 8 days at the office.
Another variable that I need is how many reservations per day have been done. Same as before it needs to be remembered by the app even when the users leave it, it has to be the same value (330 to be precise) for all the users, and when one makes a reservation, it goes down by one. Another user will then see 329.
Do I need to make a a small data base table and have the values stored there ?
The easiest method would be to make a one row SharePoint list and store your retentive information there.

Google Data Studio visualize data by frequency of the value

I have a very simple quiz like app which is basically a question and answer. I want to common mistakes of the user i.e. on which question user is making mistake most of the time. For that I have custom event which logs an event every-time a user answers a question wrong. So if there are 5 questions and user usually answers question 3 wrong than the common mistake for that user is question 3.
But in data studio I am not able to find any formula which gets the number of frequency of event value from the big query data-sets. I am looking for a way to implement this any help would be appreciated.
I am using firebase custom events which is linked to bigquery.
Do you want the output of the table to show the Questions on the left, Frequency on the right?
Or you want the output of the table to show the Users on the left, Questions (common mistakes) on the right?
For the first type, create a table, set Question as dimension, Record Counts as a metric.
For the second type, you can create a pivot table. set User as row, Questions as column, Record Counts as the metric

Google forms - Linear scale

In google forms I have a section. In the section there is 4 questions. The feedback method is linear scale allowing the user to select between 0 and 10 for each question. The total score allowed for each section is 10. Thus if the first two questions were answered as 5 each then the remaining two must be 0. Of the scores of the four questions in the section does not equate to 10 then am error must ensue. Note the sum of the four questions cannot be below or above 10. Then an error must be shown.
Please help
I understand that you want to make a check among many answers (verify that the total sum of the answers does not exceed x value) and return an error to the user in case this is not accomplished. Sadly, this is not currently possible using Google Forms. You can:
Use a Form Submit trigger to make this check. It will not be able to return an error to the user as this is currently not a supported feature, but it can decide whether to save the results or not, and possibly notify the user through an automated email in case they are not valid.
Create a WebApp instead of a Form. It can include Javascript code in the front-end that verifies your conditions, and displays the error if they are not met.

Editing table row data populated with with classic asp

I'm hoping this will be a rather simple question to answer, as I'm not looking for any specific code. I have a table on a classic asp page populated from an sql server. I've just set the table up so that each row is clickable and takes you to a page to edit the data in the row. My question is this: Would I be better off trying to use the recordset that populated the table or should I reconnect to the db and pull just the record I want edited.
As always; It Depends. It depends on what you need to edit about the record. It depends on How far apart your DB and site are from each other. It depends on which machine, if the DB and site are on separate machines, is more powerful.
That being said, you should make a new call for that specific record. The reason mainly being because of a specification you made in your question:
...and takes you to a page to edit the data in the row
You should not try to pass a record set between pages. There are a few reasons for this
Only collect what you need
Make sure data is fresh
Consider how your program will scale
On point 1 there are two ways to look at this. One is that you are trying to pass the entire record set across a page when you only need 1 record. There are few situations where another DB call would cost more than this. The other is you are only passing one record which would make me question your design. Why does this record set have every item related to a record. You are selecting way too much for just a result list. Or if the record is that small then Why do you need the new page. Why can you not just reveal an edit template for the item if it is that minimal.
On point 2 consider the following scenario. You are discussing with a coworker how you need to change a customer's record. You pull up this result set in an application but then nature calls and you step away from you desk. The coworker gets called by the customer and asked why the record is not updated yet. To placate the customer your coworker makes the changes. Now you are using an old record set and may overwrite additional changes your coworker made while you were away. This all happens because you never update the record set, you always just pass the old one from page to page.
On point 3 we can look back a point 1 a bit. let us say that you are passing 5 fields now. You decide though that you need a comments field to attach to one of your existing fields. do you intend to pass 2000 characters of that comment field to the next page? How about if each of the 5 need a comment field? Do you intend to pass 10,000 characters for a properly paged record set of 10? do you not do record set paging and need to pass 10,000 characters for a full 126 records.
There are more reasons too. Will you be able to keep your records secure passing them this way? Will this effect your user's experience because they have a crummy computer and cannot build that quick of a post request quickly? Generally it is better to only keep what you need and in most situations your result set should not have everything you need to edit.

Grade multiple forms on one spreadsheet

I need to grade some google forms. Due to the way I needed it to work, I used one form for every question on the'quiz'. Not every person will have taken the same question. The responses are recorded into spreadsheets, but google makes each form have it's on sheet on the same document. So, because of the random questions, it make's it harder to grade. Some users may have all taken question 1, while only a couple have taken question 2. The names won't be in order, either, if they took the quiz at different times. So how can I grade this? There's about 40 questions total. I'm thinking I'll need to use google app script, but I'm not sure how.
Spreadsheet
This shouldn't be to hard to do but might be a bit complicated to explain here...
What I would do :
get all data from each page into an array
add the question and the right answer in front of every user answer for each array row (page)
concatenate all the arrays into one global array
sort it on user Name and get a new array for each and every user
sort all these arrays on question (it would probably be nice to add numbers to these question if you want to control the order of the questions)
evaluate the user answers (easy since you have both the right answer and the user's answer in each row)
write back to a spreadsheet, eventually one sheet / user
Nothing really hard to do but a lot of work though ;-)
Good luck