alex i need your help

Home Forums Legacy Support 4.0 Bugs & Issues alex i need your help

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #367283
    EduMEE2
    Participant
    when complete course button is clicked and course is evaluated. i want to redirect the user to another page. i wrote this code but it is not working. add_action(‘wplms_evaluate_course’,’redirect_to_feedback_form_now’,999,2); function redirect_to_feedback_form_now($course_id,$user_id){ if(!empty($course_id) && !empty($user_id)){ wp_redirect(‘https://abc.com/feedback-form/'); exit(); } } it is redirecting but course is not marked complete. note: course is in automatic evaluation mode.
    #367413
    EduMEE2
    Participant
    This reply has been marked as private.
    #367427
    MrVibe
    Keymaster
    Ok, the best way would be show the completion message to the user and in that completion message show the button for the feedback. -- IS this an upload type course ? The issue you faced is because the mark completion was placed right after this hook. I have now placed this hook at the end of the completion, so now it will work fine after the update. wplms_plugin/create-course/upload.course.php line number 88 was shifted to line number 161
    #367433
    EduMEE2
    Participant
    This reply has been marked as private.
    #367460
    Anshuman Sahu
    Keymaster
    Well redirect currently is not possible , you can add a button in course completion field in course settings clicking on it user will be redirected.
    #367494
    EduMEE2
    Participant
    This reply has been marked as private.
    #367670
    Anshuman Sahu
    Keymaster
    Forms addons will be released soon in order to add forms in the single page anywhere . I said " CURRENTLY NOT POSSIBLE " We will have to add provision to redirect first .
    #367715
    EduMEE2
    Participant
    This reply has been marked as private.
    #367981
    Veronica
    Moderator
    closed
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘alex i need your help’ is closed to new replies.