I want to put this thank you page in my Joomla Website

  • BVCBonny
    Asked on June 30, 2016 at 6:17 AM

    URGENT please help. 

    I want to create the below form in my thank you page on my Joomla website linked to myform in you

    Please assist me and guide me to implement this on my Joomla website.

     

    _____________________________________________________________________________________________________________

    Candidate Acknowledgement Slip

    Dear {firstName5}, thank you for applying to be enrolled into BVC.
    Please check our website ( www.bvcbonny.net/enrol ) from Date for Entrance Examination Schedule / Timetable.
    *Note: A copy of this Slip was sent to your email address. 

    **If you are scheduled for Examination, please come with this slip.

    Candidate Exam Number:

     

    Full Name:

    {firstName5} {middleName} {surname4}

    Phone Number:

    {phoneNumber9}

    Date of Birth:

    {dateOf}

    State of Origin:

    {stateOf12}

    Course - 1st Choice:

    {course50}

    Course - 2nd Choice:

    {course54}

    Exam Location:

    BVC Campus - Bonny Island, Rivers State

    Mode of Examination:   Computer Based Test (CBT)

  • Irshad
    Replied on June 30, 2016 at 7:51 AM

    I am able to see you have created few forms in your account. For adding any of the form to Joomla website, please check the step by step instruction, to the below URL:

    https://www.jotform.com/help/6-Adding-a-form-to-Joomla

    If you face any kind of difficulty, please let us know.

    Thanks.

     

  • BVCBonny
    Replied on June 30, 2016 at 8:45 AM
    Sorry, I think you didn't understand me.
    I have already added the form to my Joomla successfully.
    What I want is to redirect the thank you page I created in Jotform-thank
    you.
    I want the thank you page to post data to my Joomla website page.
    Opuada Benstowe
    for BVC
    ...
  • Irshad
    Replied on June 30, 2016 at 9:00 AM

    Sorry for the inconvenience cause to you. You can check the instruction how to customize "Thank you" page, to the below URL. So please check the video in that URL with full screen HD view.

    https://www.jotform.com/help/201-How-to-Post-Answers-to-Thank-you-Page

     

    If you still face any issue, please update us.

    Thanks

  • BVCBonny
    Replied on June 30, 2016 at 9:45 AM
    I have seen the video but it is not what am looking for.
    I want to redirect the thank you page to my website and I want to post the
    data to my website page
    my thank you page is at:
    www.bvcbonny.net/enrol/thank-you-page
    See attachment.
    This what I want to display on my thank you page (
    www.bvcbonny.net/enrol/thank-you-page)
    ...
  • BVCBonny
    Replied on June 30, 2016 at 10:45 AM
    Sorry the site is in countdown mode because our Online Application process
    starts on Monday, 4th July 2016.
    But if you give me your IP I can add it to the ALLOW access list.
    So that you can see what I really want on my thank you page
    ...
  • BVCBonny
    Replied on June 30, 2016 at 11:45 AM
    I am still awaiting your response.
    Please assist me.
    Thank you.
    ...
  • Elton Support Team Lead
    Replied on June 30, 2016 at 12:06 PM

    That's possible for as long as the page you want the form data to be displayed supports PHP codes (for Joomla platform, make sure that it is possible to embed a PHP code on the page).

    So basically what you need to do first is to enable POST Data in your form. Guide: http://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page

    Then capture the form data by using PHP codes. The field variables e.g. {name} will only work with JotForm so you must write your custom PHP codes to capture the form data.

    Example:

    Candidate Acknowledgement Slip

    Dear <?php echo $_POST['firstname5']; ?>, thank you for applying to be enrolled into BVC.
    Please check our website ( www.bvcbonny.net/enrol ) from Date for Entrance Examination Schedule / Timetable.
    *Note: A copy of this Slip was sent to your email address. 

    **If you are scheduled for Examination, please come with this slip.

    Candidate Exam Number:

     

    Full Name:

    <?php echo $_POST['firstname5']." ". $_POST['middleame']." " .$_POST['surname4']; ?>

    You can continue with the rest of the fields using the following PHP format.

    <?php echo $_POST['firstname5']; ?>

    Where firstname5 is the field name - make sure they're all in lowercase.

    If you need further assistance, do let us know.

  • BVCBonny
    Replied on July 1, 2016 at 5:47 AM
    The solution you gave DIDN'T work.
    I have followed your example above over and over again BUT it still DOESN'T
    work.
    I will send you a Joomla site link for you to implement this for me please.
    ...
  • BVCBonny
    Replied on July 1, 2016 at 6:45 AM
    Like I said in my previous mail, the enrolment for BVC is going live by
    Monday, 4th July 2016, therefore it is in COUNTDOWN mode.
    S*o I have made available another Joomla website for you to assist me
    implement the custom THANK YOU page.*
    The Admin backend link is: *www.ictsmarttechnologies.com/Administrator
    *
    details:
    Login Name: JotForm
    Password: testpassword@2016
    I have the Jotform in* Apply Now article*
    and the thank you page is *Thank you article*
    *PLEASE HELP me it is VERY URGENT because my Boss want to test the site
    within the next 1 hour.*
    Opuada Benstowe
    for BVC
    ...
  • BVCBonny
    Replied on July 1, 2016 at 7:45 AM
    I am still awaiting your response
    ...
  • BVCBonny
    Replied on July 1, 2016 at 7:45 AM
    Please am still waiting
    ...
  • Chriistian Jotform Support
    Replied on July 1, 2016 at 10:18 AM

    I checked the Thank You page you made on your Joomla site and I noticed that you are still using the {firstname5} variable. The old variables will not work in your customized page. 

    I want to put this thank you page in my Joomla Website Image 1 Screenshot 20

     

    You need to use this PHP code <?php echo $_POST['firstname5']; ?> to display the submitted value to your Thank You Page. Please ensure that it is possible to embed a PHP code on the page. You might need to use a plugin to be able to add a PHP code in your Thank You page. You can try the plugin mentioned here: https://www.ostraining.com/blog/joomla/use-javascript-or-php-in-a-joomla-article/.

  • BVCBonny
    Replied on July 1, 2016 at 11:45 AM
    Okay I have changed it in my BVC site.
    Some worked BUT the image field DIDN'T work.
    the IMAGE field is: *<?php echo $_POST['uploadyour']; ?> *
    BUT it show the image NAME
    Please help
    ...
  • liyam
    Replied on July 1, 2016 at 1:23 PM

    Hello,

    Post data submissions will only provide the values. On the case of the uploads, it will not provide the link to the image, just the name of the file uploaded.

    You can still however build the link to the image of your form. Simply do this format

    <?php

    echo "http://www.jotform.com/uploads/BVCBonny/".$_POST["formID"]."/".$_POST["submission_id"]."/".$_POST["uploadyour"];

    ?>

     

    If you want this to appear as an image on the page:

    <?php

    $uploadyour = "http://www.jotform.com/uploads/BVCBonny/".$_POST["formID"]."/".$_POST["submission_id"]."/".$_POST["uploadyour"];

    ?>

    <img src="<?php echo $uploadyour; ?>">

     

    Please let us know if you have further questions or in need of assistance.

    Thanks.

  • BVCBonny
    Replied on July 2, 2016 at 9:45 AM
    I want it as Image on the page BUT the solution number 2 is NOT WORKING.
    *<?php*
    *$uploadyour = "http://www.jotform.com/uploads/BVCBonny/
    ".$_POST["formID"]."/".$_POST["submission_id"]."/".$_POST["uploadyour"];*
    *?>*
    *Solution number 3 only displays a thumb nail of the image*
    *<?php echo $uploadyour; ?> Screenshot 10*
    *WHAT is the next way forward for this problem.*
    *Also the date of birth field is showing error = ARRAY when used in the
    form.*
    *Note: I used date type: Birth Date Picker*
    *I am counting you you guys to fix this problem latest today.*
    *Thank you.*
    ...
  • liyam
    Replied on July 2, 2016 at 11:30 AM

    Hello,

    I only gave two possible methods,

    1) the echoing of the link to the image

    <?php

    echo "http://www.jotform.com/uploads/BVCBonny/".$_POST["formID"]."/".$_POST["submission_id"]."/".$_POST["uploadyour"];

    ?>

    and 2) placing the image link to a variable and then using that variable as an image source.

    <?php

    $uploadyour = "http://www.jotform.com/uploads/BVCBonny/".$_POST["formID"]."/".$_POST["submission_id"]."/".$_POST["uploadyour"];

    ?>

    <img src="<?php echo $uploadyour; ?>">

     

    Was there any error in the 2nd method? It should always print out the full size of the image since the post data does not produce thumbnail images.

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

    Also, regarding the date post data, this is a sample array of the post:

    ["dateof"]=> array(3) { [0]=> string(1) "1" [1]=> string(7) "January" [2]=> string(4) "2016" }

    So what can be done here is do this 

    $day = $_POST['dateof'][0];
    $month = $_POST['dateof'][1];
    $year = $_POST['dateof'][2];

    It's up to you how you will use the $day, $month, and $year variables, such as <?php echo "$month $day, $year"; ?>

    Please do get back to us for updates.

    Thanks.

  • BVCBonny
    Replied on July 2, 2016 at 1:45 PM
    The solution for the Image display works very well.
    Thanks for that. BUT the date issue is still there.
    How am I to use the date field with your suggestion.
    Please just give me the code let me copy and past it.
    Thank you once again. you have been of great help to me.
    Opuada Benstowe
    for BVC
    ...
  • liyam
    Replied on July 3, 2016 at 8:11 AM

    Hello,

    We're glad that the solution for the image works.

    Let's simplify the date field issue. Regarding this, the date field is a nested array, which means there is an array within an array. 

    ["dateof"]=> array(3) {
         [0]=> string(1) "1"
         [1]=> string(7) "January"
         [2]=> string(4) "2016"
    }

    You will notice that under the array key 'dateof', there are sub arrays 0, 1, and 2. And based on the values that it resulted, the 0 represents day, 1 represents month, and 2 represents year.

    So in order to call the day, you will have to call:

    $_POST['dateof'][0]; //for day
    $_POST['dateof'][1]; //for month
    $_POST['dateof'][2]; //for year

     

    So you can try doing this to print the day value:

         <?php echo $_POST['dateof'][0]; ?>

    print the month value:

         <?php echo $_POST['dateof'][1]; ?>

    print the year value

         <?php echo $_POST['dateof'][2]; ?>

     

    If these do not yield results, please let us know.

    Thanks.