Hi there,
If you want to show a user filling out the form a bunch of options, but then in your backend have each option refer to a different value (e.g Flood -> risk1, Fire -> risk2), you can enable the “Show Values” checkbox option in the Form Editor and enter that information in as choices. In your PDF template you can use the associated checkbox merge tag with the :value modifier to display the option values.
Does that answer your question?
Thread Starter
Nitrat
(@nitrat)
Thank you, I was prompted with such a solution
if (is_array($form_data['field'][227])) {
foreach ($form_data['field'][227] as $item) {
if ($item == '0.45') {$risk1 = $item;}
if ($item == '0.15') {$risk2 = $item;}
if ($item == '0.4') {$risk3 = $item;}
if ($item == '1') {$risk4 = $item;}
}
}
Glad to hear you were able to find an appropriate solution to your problem!