-
AuthorPosts
-
May 9, 2014 at 4:21 pm #262423
I have an online intake (content) form I created from the “content elements.”
http://bodymindlinks.com/book-a-session/After clicking the “submit” button I would like it to be automatically directed to a new page.
How is this accomplished?
Thank you.May 9, 2014 at 6:50 pm #262532Hi!
Try this (the line may have changed, do a search and find):
https://kriesi.at/support/topic/contact-form-redirection/#post-166771Regards,
JosueMay 9, 2014 at 9:55 pm #262597Where and how do I find what js/shortcodes.js?
Do I have to look for that code, or can I just add it in the “Quick CSS”?I would like the user to be redirected to my payment page after the click the “submit” button from the contact form.
May 9, 2014 at 10:04 pm #262601Hi!
No, it’s not that easy, the shortcodes.js file is located in the in the enfold/js folder. You can do this change via FTP + text editor or with this plugin that let you edit any file of the theme from the Dashboard.
The exact location where you need to add the code is after line 2438 (Enfold 2.7.1):
window.location="http://Payment Page URL Here";
Cheers!
JosueMay 12, 2014 at 10:16 pm #263604May 12, 2014 at 10:18 pm #263606is it in this section:
“//delete file
if(isset($_GET[‘delfile’])){
$delfile = $theme->get_stylesheet_directory() . $file;
if(file_exists($delfile)){
unlink($delfile);
echo ‘<script type=”text/javascript”>
<!–
window.location = \’themes.php?page=scte-theme-editor&theme=’ . urlencode($theme->template) . ‘\’;
//–>
</script>’;
exit();”May 12, 2014 at 10:21 pm #263611What would the “function name” be?
May 12, 2014 at 10:22 pm #263614There are 3 areas where is has “window.location” listed.
Thank you for your help.May 12, 2014 at 10:31 pm #263621Hey!
You are trying to edit the plugin, what you need to edit is the theme, go to Appearance > SC Theme Editor, then navigate to the js folder, open avia.js, look for line 2438 and add the line i suggested in my previous post.
Regards,
JosueMay 13, 2014 at 6:46 pm #264115May 13, 2014 at 6:54 pm #264119Hey!
It’s shortcodes.js not avia.js, my bad.
Cheers!
JosueMay 13, 2014 at 8:28 pm #264185That line says:
“send.button.fadeOut(300);”
Do i delete all that and paste:
window.location=”http://Payment Page URL Here”;?
Thank youMay 13, 2014 at 8:32 pm #264193May 13, 2014 at 8:39 pm #264204It worked, thank you so much for your dedication to help find a solution I appreciate your time Josue.
Good job buddy!May 13, 2014 at 8:50 pm #264207You are welcome, glad we could help :)
Regards,
JosueMay 13, 2016 at 3:32 am #631753It worked
-
AuthorPosts
- The topic ‘submit button linked to a new page’ is closed to new replies.