Reply To: REDIRECT URL BASED ON SELECT DATA

Home Forums Quform WordPress REDIRECT URL BASED ON SELECT DATA Reply To: REDIRECT URL BASED ON SELECT DATA

#32637
linux
Participant

I change codes to below. Data submitted but the page not redirect

add_filter(‘quform_confirmation_redirect_url_1_1’, function ($url, Quform_Confirmation $confirmation, Quform_Form $form) {

$selection = $form->getValueText(‘quform_1_6’);

switch ($selection) {
case ‘ToT BTCLS’:
$url = ‘https://tinyurl.com/xxxxx1’;
break;
case ‘ACLS’:
$url = ‘https://tinyurl.com/xxxxx2’;
break;
case ‘GELS’:
$url = ‘https://s.id/xxxxx3’;
break;
case ‘ALTEM’:
$url = ‘https://s.id/xxxxx4’;
break;
case ‘PPI DASAR’:
$url = ‘https://s.id/xxxxx5’;
break;
case ‘PECCAMVID’:
$url = ‘https://s.id/xxxxx6’;
break;
case ‘VAKSINATOR’:
$url = ‘https://s.id/xxxxx7’;
break;
}

return $url;
}, 10, 3);

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy