• Resolved manigopal

    (@manigopal)


    i use the hidden js to display the particular fields with radio button with in that the repeater is not working,

    the code follows

    <h2 class=”short”>Patient Information</h2>

    <div class=”row”>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”first-name”>First Name *</label>
    [text* first-name id:first-name class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”last-name”>Last Name *</label>
    [text* last-name id:last-name class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <label for=”birth-date”>Birth Date *</label>
    [date* your-date min:1950-01-01 max:2018-12-31 step:7 class:required “2013-04-01″]
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-email”>Your Email Address *</label>
    [email* your-email id:contact-email class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-home-phone”>Home Phone *</label>
    [text* home-phone id:contact-home-phone class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-mobile-phone”>Mobile Phone *</label>
    [text* mobile-phone id:mobile-phone class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-address”>Address *</label>
    [text* contact-address id:contact-address class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-city-town”>City or Town*</label>
    [text* contact-city-town id:contact-city-town class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-province”>Province *</label>
    [text* contact-province id:contact-province class:form-control]
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”contact-postal-code”>Postal Code *</label>
    [text* contact-postal-code id:contact-postal-code class:form-control]
    </div>
    </div>

    <div class=”col-lg-12″>
    <h2 class=”short”>Transferring Pharmacy Location</h2>
    </div>

    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”existing-pharmacy”>Existing Pharmacy *</label>
    [select* existing-pharmacy include_blank id:existing-pharmacy class:existing-pharmacy “Alberta” “Edmonton”]

    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”pharmacy-phone”>Pharmacy Phone Number *</label>
    [text* pharmacy-phone id:pharmacy-phone class:form-control]
    </div>
    </div>

    <div class=”col-lg-12″>
    <h2 class=”short”>Prescription(s) to be Transferred</h2>
    <h5>Please provide us with drug name or prescription number for each of the prescriptions you would like to transfer to Chappelle Pharma.</h5>
    </div>

    <div class=”col-lg-12″>
    [radio prescription-transferred id:prescription-transferred default:1 “Yes, please transfer all of my prescriptions to Rexall” “No, please only transfer the prescriptions listed below:”]
    </div>

    [field_group drug-details id=”drug-details”]
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”drug-name” id=”drug-name”>Drug Name *
    [text* drug-name class:form-control] </label>
    </div>
    </div>
    <div class=”col-lg-6″>
    <div class=”form-group”>
    <label for=”rx-number” id=”rx-number”>RX Number *
    [text* rx-number class:form-control] </label>
    </div>
    </div>
    <div class=”col-lg-12″>
    <div class=”form-group”>
    <label for=”transfer-notes” id=”transfer-notes”>Notes *
    [textarea* transfer-notes 100×10 class:form-control] </label>
    <label for=”fill-my-prescription” id=”fill-my-prescription”> [checkbox fill-my-prescription “Fill my prescription as soon as the prescription transfer is complete.”]</label>
    <label for=”hold-my-prescription” id=”hold-my-prescription”> [checkbox hold-my-prescription “Hold prescription until I request a fill.
    “]</label>
    </div>
    </div>
    [/field_group]

    <hr>
    <div class=”col-lg-12″>
    <h3 class=”short”>Important Note</h3>
    <h6>It is committed to protecting the privacy of our customers’ information. Any and all information provided on this form will be kept strictly confidential in accordance with our privacy policy.</h6>
    <h6>By submitting this form you are giving consent for a representative to contact the transferring indicated to complete your prescription transfer request.</h6>
    </div>

    <div class=”col-lg-12″>
    <div class=”form-group”>
    [submit class:btn class:btn-primary class:btn-lg “Request Transfer”]
    </div>
    </div>
    </div>

    <script language=”javascript” type=”text/javascript”>
    // Hide the Text field by default
    document.getElementById(‘drug-name’).style.display = ‘none’;
    document.getElementById(‘rx-number’).style.display = ‘none’;
    document.getElementById(‘transfer-notes’).style.display = ‘none’;
    document.getElementById(‘fill-my-prescription’).style.display = ‘none’;
    document.getElementById(‘hold-my-prescription’).style.display = ‘none’;
    document.getElementById(‘prescription-transferred’).addEventListener(‘click’, displayTextField);
    function displayTextField() {
    // Get the value of the currently selected radio button. ‘select-a-size’ is the name of the radio buttons you specify in the form builder
    var radioText = document.querySelector(‘input[name=”prescription-transferred”]:checked’).value;
    if (radioText == ‘No, please only transfer the prescriptions listed below:’) {
    document.getElementById(‘drug-name’).style.display = ‘block’;
    document.getElementById(‘rx-number’).style.display = ‘block’;
    document.getElementById(‘transfer-notes’).style.display = ‘block’;
    document.getElementById(‘fill-my-prescription’).style.display = ‘inline’;
    document.getElementById(‘hold-my-prescription’).style.display = ‘inline’;
    } else {
    document.getElementById(‘drug-name’).style.display = ‘none’;
    document.getElementById(‘rx-number’).style.display = ‘none’;
    document.getElementById(‘transfer-notes’).style.display = ‘none’;
    document.getElementById(‘fill-my-prescription’).style.display = ‘none’;
    document.getElementById(‘hold-my-prescription’).style.display = ‘none’;
    }
    }
    </script>

Viewing 13 replies - 16 through 28 (of 28 total)
  • Plugin Author Felipe Elia

    (@felipeelia)

    Hi.

    1 – WordPress does have jQuery includes, but you have to ensure that your theme really uses them.
    2 – You have changed your code again. Before, the prescription-transferred fields were outside the group now you brought them inside. Was that intentional? Why?
    3 – For long codes, please, use pastebin.com.

    Thread Starter manigopal

    (@manigopal)

    Thread Starter manigopal

    (@manigopal)

    @felipe Elia

    It worked fine at Frontend display but the mail arrives as follows

    Prescription(s) to be Transferred

    No, please only transfer the prescriptions listed below:
    Drug Name : [drug-name]
    RX Number : [rx-number]
    Transfer Notes : [transfer-notes]

    Checked : [fill-my-prescription] [hold-my-prescription]

    Thread Starter manigopal

    (@manigopal)

    even i tried like this., but doesnt worked

    https://pastebin.com/iTEgAhEg

    Plugin Author Felipe Elia

    (@felipeelia)

    It worked fine at Frontend display

    Hey, it’s a huge step forward, congratulations!

    To help you with the email message, I’ll have to give a look at how you setup the mail field in CF7.

    Theoretically, it should work with something like this:

    [drug-details]
    Drug Name : [drug-name]
    RX Number : [rx-number]
    Transfer Notes : [transfer-notes]

    Checked : [fill-my-prescription] [hold-my-prescription]
    [/drug-details]

    If it doesn’t work, try to replace all the - with _ (in fields and in the field group, in the Form tab AND in the Mail tab) and give it another try.

    Thread Starter manigopal

    (@manigopal)

    Hi @felipeelia

    #FelipeElia

    Still i dont get anything at the mail.,

    have a look at my Code,
    https://pastebin.com/gqWub0Mr

    Plugin Author Felipe Elia

    (@felipeelia)

    Hi. Can you please provide how did you set up the mail field in CF7? It’s in that second tab.

    Thread Starter manigopal

    (@manigopal)

    Plugin Author Felipe Elia

    (@felipeelia)

    That still seems to be your Form field. What I need to see is how you set up your Mail tab. Did you set both with the same value?

    Thread Starter manigopal

    (@manigopal)

    Sorry about the last one,

    @ https://pastebin.com/k45SLLuv

    Plugin Author Felipe Elia

    (@felipeelia)

    You should use something like this in order to send the grouped fields (note that the fields are between [drug_details] and [/drug_details]):

    <h3>Prescription(s) to be Transferred</h3>
    [prescription-transferred]
    [drug_details]
    Drug Name : [drug_name]
    RX Number : [rx_number]
    Transfer Notes : [transfer_notes]
     
    Checked : [fill-my-prescription] [hold-my-prescription]
    [/drug_details]
    Thread Starter manigopal

    (@manigopal)

    yes, that worked well. Thanks for your Support.

    Plugin Author Felipe Elia

    (@felipeelia)

    Oh, that is really nice, congratulations! I’m marking this topic as solved so.

    Please, if you consider this plugin helpful, leave it a positive review ??

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘how to use this’ is closed to new replies.