• Resolved Nitrat

    (@nitrat)


    Hi! How do I take several checkbox values and save them as risk1, risk2, risk3? To then use these values in different places of template.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    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;}
    	   }
       }
    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Glad to hear you were able to find an appropriate solution to your problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get checkbox values’ is closed to new replies.