void panelUpdate(string Attribut, string Wert, [string Person ID])
The panelUpdate() function updates the current subscriber's entry in the mailing List of Contacts.
'subgroup' – subgrup'language' – Preferred language version (3-digit language abbreviation)'email' – Email address'email.cc' – CC adress(es), multiple addresses separated by comma'mobile' – Cell phone number for SMS'uid' – Unique user ID (ASCII characters only)'salutation' – Salutation (complete)'title' – Academic title'firstname' – First name'lastname' – Last name'gender' – Gender for form of address ('', 'female', 'male', 'other')'custom1' to 'custom5' – User defined fieldspanelUpdate() updates the address entry of the current participant. Important: The assignment of the current interview to an address entry is only possible if …
Important: The function panelUpdate() does not work for address entries that use the privacy mode “anonymous”.
In the following example, people who selected the value 2 in the selection question AB01 (e.g. “do not wish to participate”) are moved to the “screenout” subgroup.
if (value('AB01') == 2) { panelUpdate('subgroup', 'screenout'); }
For more on IF constructions, see the Filter Questions (PHP Filters) tutorial.
Important: This example only works if the questionnaire was accessed via an individual participation link (in a serial mail) or as a result of an opt-in confirmation.
In the following example the questionnaire was called with a reference in the link. On page 3, a single opt-in (question identifier “OI01”) is used to create an address entry. The following PHP code on page 4 stores the reference in the “Custom 1” field of the new address entry to access it in the following, later interview using panelData().
$person = value('OI01'); panelUpdate('custom1', reference(), $person);
Warning: Such a constellation can lead to the cancellation of an intended pseudonymization. Clarify the use of such constructions in advance with the responsible data protection officer.