-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input_type_hidden #1379
Comments
@verybigman 'coz you may use { tag: 'input', attrs: { type: 'hidden' } } instead ;) |
Yes, I can:) but also I can { tag: 'input', attrs: { type: 'password' } } Чт, 26 февр. 2015 г. в 15:47, Vladimir Grinenko notifications@github.com:
|
i think you need block |
Ok, we don't need wrappers for |
@verybigman You just stick to HTML inputs. Free your mind of it! |
@zxqfox hast thou not been for the degradation to normal form post ;) |
There is some argument for not doing this modifier? We can add it in bem-forms if here it is superfluous. |
@verybigman can you provide examples of usage? |
Yes! For example i use hidden input for type of value in another input. When value in another input is changes i change type in hidden input:) |
are you sure that's the best way? ;) |
Yes. Server wait two fields. First is value, where can be number or string. Second is value type field (hidden). Users can't edit type, they edit value with mask. |
First of all you can never trust anything from client side so you have to check all user input on server side anyway. And as so why not just get type on server and get rid of that second field at all? |
I think the conversation did not go there:) We have of course server validation. But we think here about front-end. In addition to the expectations of the server with hidden fields containing types or something else related interface blocks. The fields in the form can be dynamic, that is to appear and disappear. A intermediate data must also be stored somewhere. And with all this, you should be able to do a normal post request:) |
In case in just need to hide some parts of form and still post it's values to server (which is far from previous examples ;)) you can just use I want detailed real-life example of the situation when you really need |
Problem will be solved in |
Hi, guys!:) What about this #554 issue? We work on bem-forms library and base form fields on bem-components inputs. Now we think about hidden form fields and we need to
input_type_hidden
:) I know you close issue about this. Why? This mod would be realized in v2, but it is not.The text was updated successfully, but these errors were encountered: