• Resolved snowme

    (@snowme)


    I’m trying to link a radio button with multiple options to various checkboxes in the PDF.

    I’ve tried adding the following to my form
    [radio case use_label_element default:1 “Divorce|Check Box119” “Separation|Check Box120” “Annulment|Check Box122” “Other|Check Box123”]

    The piped value is the value of each checkbox in the PDF form. This doesn’t seem to work. Do I need to create a mapping for each option to each checkbox?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author maximum.software

    (@maximumsoftware)

    Yes, if you have multiple checkboxes in the PDF that are named differently, you will need to create a mapping from the single CF7 field to each PDF checkbox field. This will only work if your PDf checkboxes have different export values (as you seem to indicate). So, it should work for you once you create the mappings.

    If it does not work, post a link to your PDF or send it to my email at admin at maximum dot software and I will test it out.

    Thread Starter snowme

    (@snowme)

    Still can’t seem to get it to work even with the mapping. I sent you a copy of the PDF.

    Plugin Author maximum.software

    (@maximumsoftware)

    I’ve received your PDF. The export values of checkboxes are all “Yes”, not “Check Box119”, “Check Box120”, “Check Box122”, and “Check Box123” as you indicated. It will not work this way.

    The mapping feature works field-to-field, not field-value-to-field-value. CF7 produces 1 field with multiple possible values with your tag. That gets mapped to a PDF field which presumably should have those exact multiple values as options. The mapping feature doesn’t allow you to do this mapping conditionally to different PDF fields based on the CF7 field value while also mapping CF7 field values to some other PDF field values.

    I recommend editing the PDF and naming all 4 checkbox fields with the same name while setting a unique export values for each checkbox (matching the values in the CF7 tag). This will allow you to map 1 CF7 field to 1 PDF field while having a “natural” value mapping.

    Thread Starter snowme

    (@snowme)

    Unfortunately I’m not able to edit the PDF because its an official form. For now I’ll just have to go with individual checkboxes for each.

    Plugin Author maximum.software

    (@maximumsoftware)

    You may be able to come up with something on the CF7 side. All you need is a mail-tag for each option that will give you “Yes” when the corresponding PDF checkbox needs to be checked. You can then map each of those mail-tags to the corresponding PDF fields. I’m not sure, there might be a CF7 plugin that helps with that.

    Otherwise, I will need to change the mapping feature to allow conditional filling based on CF7 field value. I feel like this is out of scope of my plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Map Radio Button to Checkboxes’ is closed to new replies.