- Posts: 11
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
get_question_properties return array, set_question_properties input array
- bpresentati
-
Topic Author
- Offline
- New Member
-
Less
More
4 weeks 2 days ago #264945
by bpresentati
get_question_properties return array, set_question_properties input array was created by bpresentati
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.4+240422
Own server or LimeSurvey hosting: own server
Survey theme/template:
Fruity TwentyThree
==================
Hello,
Longtime user of the Remote Control API on Limesurvey 3.22.28+200728 , now we've migrated to 6.5.4+240422 and I've noticed some things do not behave the same. Most importantly, the get_question_properties API call no longer returns a "question" field - with the question text in it. Similarly, the "set_question_properties" API call no longer seems to accept a similar field, so it is impossible to update the question text using the API, which is a shame since it was a functionality I use quite a bit. Is there still a way to access/change the "question" property like in the older LS version? Am I missing something?
To help visualize what I mean, here is the return array for "get_question_properties" from LS 3.22:
And here is what I get in LS 6:
Also, since I'm a heavy user of the API, I'd like to learn more about it, and possible even contribute to its development. Where/how can I do that?
Thank you all for your time!
Your LimeSurvey version: 6.5.4+240422
Own server or LimeSurvey hosting: own server
Survey theme/template:
Fruity TwentyThree
==================
Hello,
Longtime user of the Remote Control API on Limesurvey 3.22.28+200728 , now we've migrated to 6.5.4+240422 and I've noticed some things do not behave the same. Most importantly, the get_question_properties API call no longer returns a "question" field - with the question text in it. Similarly, the "set_question_properties" API call no longer seems to accept a similar field, so it is impossible to update the question text using the API, which is a shame since it was a functionality I use quite a bit. Is there still a way to access/change the "question" property like in the older LS version? Am I missing something?
To help visualize what I mean, here is the return array for "get_question_properties" from LS 3.22:
And here is what I get in LS 6:
Also, since I'm a heavy user of the API, I'd like to learn more about it, and possible even contribute to its development. Where/how can I do that?
Thank you all for your time!
Please Log in to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Less
More
- Posts: 13844
- Thank you received: 2521
4 weeks 2 days ago #264947
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic get_question_properties return array, set_question_properties input array
Seems it's an issue looking at code : please report the issue
github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1689
For set_question : must work near same : github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1887
github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1689
For set_question : must work near same : github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1887
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: bpresentati
Please Log in to join the conversation.
- bpresentati
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 1
4 weeks 2 days ago #264953
by bpresentati
Replied by bpresentati on topic get_question_properties return array, set_question_properties input array
Thanks Denis!
Yeah, you are right, the set_question works, but only if you also supply the language, which is a weird thing you didn't have to do before.
Yeah, you are right, the set_question works, but only if you also supply the language, which is a weird thing you didn't have to do before.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Less
More
- Posts: 13844
- Thank you received: 2521
4 weeks 2 days ago #264961
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic get_question_properties return array, set_question_properties input array
Solutions :
1. community.limesurvey.org/bug-tracker/ then it was fixed in a future release
2. Fix it via a plugin gitlab.com/SondagesPro/RemoteControl/extendRemoteControl to have it quicker
1. community.limesurvey.org/bug-tracker/ then it was fixed in a future release
2. Fix it via a plugin gitlab.com/SondagesPro/RemoteControl/extendRemoteControl to have it quicker
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.