Inhaltsverzeichnis

panelUpdate()

void panelUpdate(string Attribut, string Wert, [string Person ID])

The panelUpdate() function updates the current subscriber's entry in the mailing List of Contacts.

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“.

Example: Change Subgroup

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.

Example: Save Referenz

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.