Dear support team,
I am getting the error message "There are not enough parameters for the function replace(). 2 parameters are essential for proper processing. Please refer to the user manual for further details." However, I have included 2 parameters and I followed the exact same structure that I have used in previous surveys. Also, if I try often enough, the error message sometimes disappears and the question is shown as desired.
The code I use that includes "replace" is:
$Attr1A = array(
1 => 'public transportation',
2 => 'private transportation',
3 => 'walking / cycling',
4 => 'public transportation',
5 => 'walking / cycling',
6 => 'walking / cycling',
7 => 'public transportation',
8 => 'private transportation',
9 => 'public transportation',
10 => 'private transportation',
11 => 'walking / cycling',
12 => 'public transportation',
);
$code = value('DC07');
$OneA = $Attr1A[$code];
replace ('%Attr1A%', $OneA);
This is part of a discrete choice experiment.
I appreciate your help!