Welcome to the LimeSurvey Community Forum

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

Api not catching extra attribues while adding Participants

  • navt3k
  • navt3k's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #154949 by navt3k
Hi,

I am working for a client and they have installed your system. They hired me for api development.

My problem is while adding participants the user want to add extra attributes too but when I am sending that data to api it's not catching it.

Here is my code (i ve tried ea_1 also attribute_1 but none workes)

$Participants=array(array("email" => "$_REQUEST
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 11 months ago #154959 by LouisGac
The topic has been locked.
  • navt3k
  • navt3k's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #154964 by navt3k
Thanks for your reply.. but sadly the code says...

$aData = array(
'firstname' => $aParticipantData,
'lastname' => $aParticipantData,
'email' => $aParticipantData,
'owner_uid' => Yii::app()->session, // ToDo is this working?
);

so they aren't processing any extra attribute in the method moreover these extra attributes are not the part of the participant table, these are stored in another table (participant_attribute) with a reference set to the (participants) with `participant_id`

what are your thoughts around that ?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #155664 by DenisChenu
We are happy to see good merge request for improving LimeSurvey .

Your client hiring you, not us.

But here : you don't have good eyes : system seems to be here : github.com/LimeSurvey/LimeSurvey/blob/96...rol_handle.php#L2901

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: LouisGac
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose