Questions about Payment Form extension

Make inputfields required when os_offline is selected

  • Kenneth Hüdig
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #148397 by Kenneth Hüdig
Hi, 

I need to make some fields (IBAN, BIC) required when "os_offline" payment is selected. In the JQuery-Validation Documentation I found the option "condRequired"

For the Payment selection there is always a value. So this won´t work.

I tried in the Validation field of "IBAN": validate[required,os_offline] but it won´t work.
Do I need to add an "Id"(id="os_offline") to the inputfield in PHP(Override)?
When possible I want to only show the fields when os_offline is selected like Authorization.net the creditcard information is shown.

Thanks!
Kenneth

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #148402 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Make inputfields required when os_offline is selected
Hi Kenneth

In short, there is no way to handle this at the moment. Somehow, I think you would have to add some code to the layout so that when the offline payment method is selected, the two fields are shown, otherwise, make it hidden

No way to just configure it

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc