Calculation value for Radio/dropdown field to be stored as submission data

  • Profile Image
    senpon
    Asked on March 29, 2017 at 05:50 PM

    For Gender field, would like to show the option as Male and Female for client but I want the value to be downloaded as m for Male and f for Female in the excel sheet. How to do this?

     

    Thanks,

    Sen

  • Profile Image
    Ian
    Answered on March 29, 2017 at 09:33 PM

    Calculation value will not be shown in submission, the label will be shown instead, you could however use the following workaround.

    Set the desired values "m" and "f" as label

    and  then set the label with custom CSS code as male and female.

    Here is the custom CSS code :

    label#label_input_36_0, label#label_input_36_1 {

        font-size: 0px;

    }

    #id_36 .form-radio-item:nth-child(1)::after {

        font-size: 20px;

        content: "Male";

        position: absolute;

        left: 30px;

        top:-5px;

    }

    #id_36 .form-radio-item:nth-child(2)::after {

        font-size: 20px;

        content: "Female";

        position: absolute;

        left: 30px;

        top:-5px;

    }

    Hope this helps