<input type="radio" name="AcceptTerms" value="Ja/Nein"/>
So, I need to check if the Radio button is selected, to assign variable with value ‘Ja’, if not assign with ‘Nein’.
So, can someone help me how to check if the radio button is checked/selected in smarty template (.tpl)?
this is nopt how it works
You need some basic knowledge about how web sites work: backend, frontend, server and client side scripts and on which side the particular scripting language is executed.
Smarty is PHP running on the server, JS lives in the Browser on the client. There is no direct connection.
You have to put the value into an input field (using JS), which then gets submitted to the controller.
Yes, I am doing in that way right now.
This feature I need in the third step during the checkout when payment method is choosen.
I have to give opportunity to the client to Accept or Not accept to be used his personal information.
So, maybe I can add input field inside the form that is submitted when ‘Next Step’ button is pressed…
I created a new form, passed data to controller and everything works fine.
But, I have one more problem:
If I am trying to use existing button ‘Continue to next Step’ for submitting my form it’s not working because in the first lines of the form, there are some class and functions defined: