A
A
Artem2020-10-25 17:25:45
CMS
Artem, 2020-10-25 17:25:45

How to check if at least one field is filled?

Good day!
There is a form, and a check is needed so that if the user once entered something in any field and switched to another field, then the event will fire. And in the following attempts, the event does not work.
At the very thought of switching flags arises (false to true or vice versa). Thank you.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
C
crazyivan_ru, 2016-04-21
@MefistofelKr

I would also suggest paying attention to OpenCart , it supports all the functionality you declared (most of the box, the rest are modules).

E
Evgeny Akhmetov, 2016-04-21
@asperin2

www.opencart.com ? If it's not enough with the modules, then write your own.

M
Mr Crabbz, 2016-04-21
@Punkie

wordpress + woocommerce

G
gorczko, 2016-05-11
@gorczko

DotPlant2 is unambiguous, I attach the link here , it suits all your requirements, if you work with the Yii2 framework, then there are no problems at all.

C
Crazy Citizen, 2020-10-26
@Markizzio

Hello, I don’t see the code, I’ll assume that there is a certain Input class that we use to work with form elements, it has model fields - which stores the value itself, and for example validation - which stores the fields: dirty, error, hang up a blur event, which, respectively and control the state of your input already in the methods, and then render everything you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question