• Resolved ddrapeau

    (@ddrapeau)


    I noticed that a radio selector field in the Profile was not storing the data selected. Data that had been stored in the database before will show in the Profile screen. That data will still show when opening the profile in edit mode. If the profile is updated, the information is gone because an empty array has been stored.

    I had use WP-Rollback plug-in to rollback to version 2.1.21 to get the radio button to work properly again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter ddrapeau

    (@ddrapeau)

    Further info: I’m on WordPress 5.9-en_CA running with Astra theme. The problem also occurs with Tempera theme.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ddrapeau

    Are you using a custom choices callback or did you just populate the dropdown options in the field settings via UM Form Builder?

    Regards,

    Thread Starter ddrapeau

    (@ddrapeau)

    I am using the UM Form Builder.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ddrapeau

    Could you please provide the list of options added to the Dropdown field settings? I’ll try to reproduce the issue on our end.

    Regards,

    Thread Starter ddrapeau

    (@ddrapeau)

    The RADIO field settings are:

    Title: Fee [CHANGE THIS FIELD EVERY YEAR]

    meta key: member_fee_due

    Edit Choices:

    $55  Early Bird (Single)  April 1-30
    $65  Single - After April 30
    $55  Early Bird (Family - Primary member)  April 1-30
    $65  Family (primary member) - After April 30
    $27  Early Bird Family - per additional family member  April 1-30
    $32  Family - per additional family member - After April 30
    
    Visibility Everywhere
    
    Field not required
    
    User can edit field
    
    Label: Fee
    
    Privacy: Everyone

    =======================================

    To make matters more interesting, based on your question I just now tried:

    $55  
    $65  
    $55  
    $65  
    $27 
    $32

    which works with 2.2.0

    I noticed that there were some “double spaces” after the fee in the original list. On a wild guess I replaced every double-blank space with single space …. and it works!

    I put the double blanks back in … and it does not work!

    Does this help?

    Thread Starter ddrapeau

    (@ddrapeau)

    I just noticed that the double blanks were taken out of my post above.

    here are two of the lines with “^” in place of blanks

    $55^^Early Bird (Single)^^April 1-30
    $65^^Single – After April 30

    there were two spaces in position 4 and 5 of each of the above rows.

    replacing them with single space worked.

    Thread Starter ddrapeau

    (@ddrapeau)

    looking at the change log for 2.2.0, I wonder if one of the “Sanitizing handlers” you added in that release might be the culprit?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ddrapeau

    Yes, it looks like sanitation is causing the issue. We are using the sanitatize_text_field function for this. The function does the following:

    - Checks for invalid UTF-8,
    - Converts single < characters to entities
    - Strips all tags
    - Removes line breaks, tabs, and extra whitespace
    - Strips octets

    I suggest that you remove the double spaces for now. We will fix this issue in version 3 and use the keys instead of Labels as a field value.

    Regards,

    Thread Starter ddrapeau

    (@ddrapeau)

    Thanks!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Radio not saving selections (2.2.0 to 2.3.0)’ is closed to new replies.