Refreshing fields with display rules...

User 187934 Photo


Senior Advisor
20,271 posts

Try placing the script html element at the bottom of your page. Also try using a no conflict. I see your form is on S-Drive. If it wasn't I would also try placing the scripts in the head section.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
var jQ = $.noConflict(true);
jQ(document).ready(function(){

jQ('input[name="em_contant"]').css("display","none");
jQ('input[name=em_contant]').attr('readonly', true);
var em_contant = "De inloopavond, Quantum-Animals en Quantum-Kids Workshop betaal je ter plekke contant. Deze zijn niet in de online betaling opgenomen.";
jQ('input[name="em_contant"]').val(em_contant);

/* var em_contant = jQ("#em_contant");
jQem_contant.css("display","none");
jQem_contant.attr('readonly', true);
jQem_contant.val("De inloopavond, Quantum-Animals en Quantum-Kids Workshop betaal je ter plekke contant. Deze zijn niet in de online betaling opgenomen."); */

jQ('input[name="em_betalen"]').css("display","none");
jQ('input[name=em_betalen]').attr('readonly', true);
var em_betalen = "Je kunt via iDeal betalen door op de banken hieronder te klikken.";
jQ('input[name="em_betalen"]').val(em_betalen);

jQ('input[name="em_wachtlijst"]').css("display","none");
jQ('input[name=em_wachtlijst]').attr('readonly', true);
var em_wachtlijst = "Voor een workshop waarvoor je op de wachtlijst staat, graag pas betalen als je van ons hoort dat je definitief mee kunt doen.";
jQ('input[name="em_wachtlijst"]').val(em_wachtlijst);

jQ('input[name="em_korting"]').css("display","none");
jQ('input[name=em_korting]').attr('readonly', true);
var em_korting = "De kortingscode voor het Quantum-Allergy (e)book is: de datum van de QA-workshop.";
jQ('input[name="em_korting"]').val(em_korting);

jQ('input[name="em_herhaling"]').css("display","none");
var em_herhaling = "Heb je een QT 1, 2 of SCH Workshop bij een andere gecertificeerde trainer gedaan stuur dan een foto/scan van het certificaat naar ons toe, zodat je voor de herhalingsprijs in aanmerking komt.";
jQ('input[name="em_herhaling"]').val(em_herhaling);

});</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 473299 Photo


Registered User
144 posts

It look likes this works, happy! I thought I already tried including noConflict and the HTML as low as possible, but maybe not the combination, or did you change something else too? Hapoy now after trying all day to put a <div> <input> in the html, which produced a field on the confirm page to select, but which didnt give the value. Finally the result I want, thanx Eric for your support and information on this forum, I learned a lot from you.
User 473299 Photo


Registered User
144 posts

This is the result page: www.qtouch.nl/inschrijven.html with e-acceptgiro of https://www.targetpay.com/quickreg/99353/ behind it.
User 187934 Photo


Senior Advisor
20,271 posts

Looks good. Glad it's finally working for ya.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.