johnja1
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection for Contact Form 7] Will this affect the current on_sent setup?Hi Yuvalsabar,
I use the on_sent_ok hook in my additional setting, I check if the user select certain option on the form and then redirect the user to payypal or thank you page. If I use your plugin, will I be able to put these condition in place ? An example of my additional setting on the form is below
on_sent_ok: “if (document.getElementById(‘RegPay’).value== “Register & Pay Later”) {location.replace(‘http://www.greensborochess.org/thank-you-for-your-participation-scholastic/’)} if (document.getElementById(‘RegPay’).value== “Register & Pay Now”) {location = ‘https://www.paypal.com/?cmd=_xclick&[email protected]¤cy_code=USD&amount=’+jQuery(‘#Tournamount’).val()+’&return=http://www.greensborochess.org/thank-you-for-your-participation-scholastic/&rm=2&cancel_return=http://www.greensborochess.org/cancellation-of-g-c-c-open-tournament/&item_name=GCC Scholastic Tournament&email=’+jQuery(‘#email’).val()+’&first_name=’+jQuery(‘#fname’).val()+’&last_name=’+jQuery(‘#lname’).val()+’ ‘;}”
please let me know if there is a way I can check in your plugin
Jacob
Forum: Plugins
In reply to: [Contact Form 7] Thank you page (Custom DOM event) helpHi Joe,
Thank you for your reply, to make things simple I use the plugin Insert Headers and Footers by WPBeginner. This plugin just adds your code to the header.php or the footer.php. I just wanted to try out my code and discontinue the web hook (on_sent_ok) For your reference my url http://www.greensborochess.org/test1/
Any advice would be really appreciated, Also I have downloaded and I’m trying out Ninja forms. It is 100 times better but unfortunately it cost $199 for the most popoular version. I think I can get a way with the free version but I need to redirect participants to paypal and also list out participants.
Many Thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Additional SettingHi Takayuki,
I’m still unable to use DOM events code as you recommended to reduce complexity I use the plugin Insert Headers and Footers to insert your code
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘http://example.com/’;
}, false );
</script>
Unfortunately it did not work. I use the default theme of WordPress http://www.greensborochess.org/test1/Forum: Plugins
In reply to: [Contact Form 7] Redirect to URLHi Sahanya,
Did you find out how you can redirect a url other then using the hook on_sent_ok, I’ll really trying to find out where to put the code.
thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Redirect to URL on successful form submission not workingHey Deancaslin,
I would like to do the same, Can you please let me know where did you put your code to redirect ? I wanted to use a plug in to drop the code in the footer or header of the main theme. But it did not work, may be I did not use the <script> & </script>. can you please advice
Many Thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Additional SettingHi Takayuki,
Where can we put the DOM events code ? Please advice ? I’m not clear about you mentioning put in the Theme (header.php). can I put the in the form itself ?
Thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Can’t get custom DOM events to work?Hi Edikitt,
Can you tell me where do you put this code, I have a page an I pt my form on the blank page but I’m not sure where to put the code to check for my input and redirect it to another web site. Initially I was using the Sent_ok hook in th additional setting tab on the form but this will is not working any more. I was told to use DOM event. I tried using the header.php but with no luck. please advice
<script> var formStandard = document.querySelector( '#cf7-custom-container' ); formStandard.addEventListener( 'wpcf7submit', function( event ) { ga('send', 'event', 'Contact Form', 'submit', 'Standard Form Submit'); location = '/thank-you'; }, false ); </script>Many Thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Thank you page (Custom DOM event) helpHi Joe,
Thank you for your reply, you mention “put the code into the head section of each page with a contact form on it” I tried to put it in the header.php but my form is on anoter page, it shows but it does not work. Please advice
The Contact Form 7 is being use by millions and has worked for me for a long time. I do not know of a better form.
Many thanks
JacobForum: Plugins
In reply to: [Contact Form 7] Thank you page (Custom DOM event) helpHi Joe,
I’m really struggling to put a similar code for my form. I use teh default WP Theme Twenty Fourteen and I could not find a place to put the below code to validate my inputs, Can you please advice ? Maybe contact form is no mre good !!
document.addEventListener( ‘wpcf7submit’, function( event ) {
var inputs = event.detail.inputs;
for ( var i = 0; i < inputs.length; i++ ) {
if ( ‘your-name’ == inputs[i].name ) {
alert( inputs[i].value );
break;
}
}
}, false );Thanks Joe
JacobForum: Plugins
In reply to: [Contact Form 7] Additional SettingHi Takayuki,
Thank you for your reply. Just a few questions regarding the DOM events,
a) Can I replace these code in the additional setting tab where I had put the code for the Hook on_sent_ok:?
b) Will the additional setting tab be discontinued later?
c) Where is the best place to validate inputs within our contact form ? please advice.Many Thanks
JacobForum: Plugins
In reply to: [PayPal IPN for WordPress] PayPal IPN Not showing Up for Paypal SandboxHi Angelleye,
Did you by any chance get time to add short codes to your plugin ??. We need to display the dashboard entries on a page. Is there any way to display the results on a page ?
Any advice would help.
Many Thanks
JacobForum: Plugins
In reply to: [PayPal IPN for WordPress] PayPal IPN Not showing Up for Paypal SandboxHi Angelleye,
Ok, I’ll wait for your 1.1 release. On another topic, Is there a way to sent PayPal the actual Players information (i.e. Name,Ids,etc). Many times the payer is not the player. I tried using the custom field and works great but I could not find more custom fields.
If you know please let me know.
I assure you this plugin is going to be really important and useful for many people.
Many Thanks
JacobForum: Plugins
In reply to: [PayPal IPN for WordPress] PayPal IPN Not showing Up for Paypal SandboxHi Angelleye,
Sorry for not updating you. I had it working, just like you said, I totally forgot to put the IPN url in the Paypal account. The reason you can’t get to the page is because there is a “)” in the url (my mistake).
I have a couple of questions for you. We want to list out the players who had paid, Unfortunately with your plugin the only way to do that is to logon and view it on the dashboard. Is there a short code or anyway to list out and display it on a page? Here is an example http://www.greensborochess.org/sandbox/tournaments/pre-online-registration-list/
The above url is a result of all the entries that is captured from the contact 7 form. I use CFDB plugin to capture them. The column that you see “Payment Status” is really not coming from Paypal but assuming that the player is honestly selecting the right option to pay and truly paid.
I know you are an expert in Paypal so I have confidence that you can help out here.Many thanks
JacobForum: Plugins
In reply to: [Contact Form DB] Conditional Display using CFDFHi Michael,
That works perfectly thanks !!
Jacob
Hey Takayuki,
Can you please help me out. I really need to know if we can use 2 submit buttons in one forms ?
Many Thanks
Jacob