The two pieces of code are:
<script language="Javascript" type="text/javascript">
jQuery(document).ready
(function($) {
úse strict';
$(document).ready( function() {
$('form.wpcf7-form :input').change(function(e) {
var $field = $(e.target);
switch($field.attr('name')){
case 'betaal_methode':
var keuze2 = $(ïnput[name='betaal_methode']:checked").val();
break;
}
switch (keuze2) {
case 'iDeal':
var bedrag = $("input[name='Totaal']").val();
document.getElementById("pronamic_pay_amount").value = bedrag;
break;
case 'Overmaken':
document.getElementById("pronamic_pay_amount").value = 0;
break;
}
})
This is a part of the code in which I want to fill the pronamic_pay_amount depending on the value of a radio item.
I hope soemone can direct me how to solve this.
Where can we see the website in question?
Daar Takayuki,
I had to remove the extra coding because we meedeed the page to work. I will restore some code in the contact page. The site is Canthonis.nl. Give me a few hours to do that.
Dear Takayuki,
I put the code in the contact page.
This is not the original page but you can see what the intantion is and how it reflex on the page.
I hope you can get the idea of what I want to accomplice.
Where on the site do you have the form having the issue?
in the top menu you see contact, there you will find the forn.
What other plugins and theme do you use on the site?
I use elementor.
Theme is Blocksy.
Plugins are: Blocksy Companion, Calculation for contact form 7, Contact form 7, Contact form Entries, Content Control, Duplicator, Elementor, Essential addons for elementor, Insert php code snippet, members, nav menu roles, PDF embedder, popup box, profile Builder, pronamic pay met Mollie voor Contact form 7, redirection for contact form 7, send users email, smart slider 3, tablepress, ultra addons for contact form 7, wordfence security, WP Bestandsbeheer and wp mail smtp
Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Wordfence Security and WP Mail SMTP, and clearing all cache data.
Why you are advised to deactivate plugins and switch to the default theme.
Hello Takayuki,
I think I found the problem.
On a development server I created a new wordpress and used the next plugins:
theme: Blocky including Blocky Companion
plugins: Contact form 7
Contact Form Entries
Elementor
Essential Addons for Elementor
So far no problems.
After that in added ‘Ultra Addons for Contact Form 7’ and there the problem showed up.
I think the problem is in this addon by Themefic.
Please give me some advice because I wanted to use this addon for the ‘Conditional fields’
If it were really caused by the “Ultra Addons for Contact Form 7” plugin, there would be nothing I could do for you. Contact the plugin’s support if possible.
I already send the developer of “Ultra Addons for Contact Form 7” a email about this problem including some screenshots.
Thanks for your support