Lime Survey - How to get the value of the custom field of survey-questions?

More
6 months 2 weeks ago #152048 by Krutika_Lime01
Krutika_Lime01 created the topic: Lime Survey - How to get the value of the custom field of survey-questions?
Lime Survey provides Code, question, Help and other fields while creating question of a Survey.

I have created one custom field called Weighting for a question in a Lime Survey.

Now, I want to access the value of this field and want to use the value of this field in final score calculation of a survey.

We can access the fields of the questions with Qcode.question, Qcode.code etc.

But, while i use Qcode.weighting , I am not able to access the value of weighting of a question.

How, can i get the value of this custom field which i have created ?

Thank you for reading.

Please Log in to join the conversation.

More
6 months 2 weeks ago #152050 by jelo
jelo replied the topic: Lime Survey - How to get the value of the custom field of survey-questions?

Krutika_Lime01 wrote: I have created one custom field called Weighting for a question in a Lime Survey.

Explain what you have done to create a "custom" field.

Please Log in to join the conversation.

More
6 months 2 weeks ago #152056 by Krutika_Lime01
Krutika_Lime01 replied the topic: Lime Survey - How to get the value of the custom field of survey-questions?
Hi @jelo,

Following steps we have performed to create a custom field called weighting for a question in a survey.

We have created one filed called weighting in database table.And also created one new field in add/edit question form.

We are able to save the value in database table. Now, we want to get the value of this custom field in final calculations.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now