[paytium name=”Form name” description=”Payment description”]
[paytium_field type=”email” label=”Email” required=”true” /]
[paytium_field type=”voornaam” label=”Voornaam” required=”true” /]
[paytium_field type=”achternaam” label=”Achternaam” required=”true” /]
[paytium_field type=”text” label=”Adres” required=”true” /]
[paytium_field type=”text” label=”Postcode” required=”true” /]
[paytium_field type=”text” label=”Plaats” required=”true” /]
[paytium_field type=”text” label=”Provincie” required=”true” /]
Eerste keuze workshop:
[paytium_field type=”dropdown” label=”Kies je eerste workshop” options=”Workshop 1: Titel van workshop/Workshop 2: Titel van workshop/Workshop 3: Titel van workshop/Workshop 4: Titel van workshop/Workshop 5: Titel van workshop/Workshop 6: Titel van workshop/Workshop 7: Titel van workshop/Workshop 8: Titel van workshop” required=”true” /]
Tweede keuze workshop:
[paytium_field type=”dropdown” label=”Kies je tweede workshop” options=”Workshop 1: Titel van workshop/Workshop 2: Titel van workshop/Workshop 3: Titel van workshop/4: Titel van workshop/Workshop 5: Titel van workshop/Workshop 6: Titel van workshop/Workshop 7: Titel van workshop/Workshop 8: Titel van workshop” required=”true” onChange=”removeSelectedOptions()” /]
<script>
function removeSelectedOptions() {
var firstChoice = document.querySelector(‘[name=”Kies je eerste workshop”]’).value;
var secondDropdown = document.querySelector(‘[name=”Kies je tweede workshop”]’);
for (var i = 0; i < secondDropdown.options.length; i++) {
if (secondDropdown.options[i].value === firstChoice) {
secondDropdown.options[i].disabled = true;
} else {
secondDropdown.options[i].disabled = false;
}
}
}
</script>
[paytium_field type=”label” label=”Product ABC for € 1,01″ amount=”1,01″ /]
[paytium_total /]
[paytium_button label=”Pay” /]
[/paytium]