T
T
Tom Nolane2018-02-05 15:08:32
JavaScript
Tom Nolane, 2018-02-05 15:08:32

How to set up validation in the job title?

Hello! I have many sites with profiles, where the user enters his full name, date of birth and many many other things, incl. data about your work. I use jquery validation and 3rd party dadata service .
Example
I also use regexp: ^[А-Яа-яЁё\d\s\-\,\№\#\.\+\(\)"]+$
Sometimes users enter not only the name of the work, but also the street:
"LLC "TD POLITORG" Fadeeva 2d" or "Southport SAUNA DE LUX", etc.
Question: what can you think of (need an idea) to prevent the user from entering everything else, except for the name of the organization?
Add help-block: "organization name only"??
Change placeholder: "example: OOO "PTN"" ?
What else can you think of? Who has experienced this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Domoratskii, 2018-02-05
@domoratskii

Use dynamic label and placeholder for refinement. Example
5a78bf2895d72164768612.png5a78bf3622924179904898.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question