-
Notifications
You must be signed in to change notification settings - Fork 20
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
Source put data on other order #23
Comments
Hello, This is indeed a reproductible bug |
Thanks for reporting |
@Gregwar the order is fixed. But, the empty option in first position continues:
|
Hello,
I guess your field should be required
Else, a blank field is added to allow the user entering nothing
Le dim. 5 mars 2017 17:59, Silas Ribas Martins <notifications@github.com> a
écrit :
… @Gregwar <https://github.com/Gregwar> the order is fixed. But, the empty
option in first position continues:
<select name="estado" id="estado" >
<option value=""></option>
<option selected="selected" value="">- selecione -</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
...
</select>
<select name="estado" id="estado">
<option value="">- selecione -</option>
<options source="estados" />
</select>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWZrgVinmNdfgsMm0EokPfrIRSf8UCCks5riun1gaJpZM4MTTpG>
.
|
I confess that this behaviour could be discussed
Le dim. 5 mars 2017 18:00, Grégoire Passault <g.passault@gmail.com> a
écrit :
… Hello,
I guess your field should be required
Else, a blank field is added to allow the user entering nothing
Le dim. 5 mars 2017 17:59, Silas Ribas Martins ***@***.***>
a écrit :
@Gregwar <https://github.com/Gregwar> the order is fixed. But, the empty
option in first position continues:
<select name="estado" id="estado" >
<option value=""></option>
<option selected="selected" value="">- selecione -</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
...
</select>
<select name="estado" id="estado">
<option value="">- selecione -</option>
<options source="estados" />
</select>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWZrgVinmNdfgsMm0EokPfrIRSf8UCCks5riun1gaJpZM4MTTpG>
.
|
@Gregwar I understand, But I desire set the "label" of this blank option. |
My idea Add a attribute flag, named as Example:
OR add attributes to set de value and label of default empty option: Example:
What do you think? |
I think that the empty element should never be added by Formidable, this
would let the user do whatever he wants
Le dim. 5 mars 2017 20:23, Silas Ribas Martins <notifications@github.com> a
écrit :
… My idea
Add attribute (not replicated as element attributes) flag (named as
without-empty-item) that says: this hasn't a default empty option,
without to use required attribute. But, if element is set as required,
default empty option hasn't added like before. Example: <select
name="estado" id="estado" without-empty-item> <option value="">- selecione
-</option> <options source="estados" /> </select> OR add attributes to set
de value and label of default empty option: Example: <select name="estado"
id="estado" empty-item-value="0" empty-item-label="- selecione -"> <options
source="estados" /> </select> What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWZruEi691GirC9dKv5ObJRt_2Rg8_9ks5rixmigaJpZM4MTTpG>
.
|
@Gregwar I agree with you :D |
Ok, it's done, tell me if it's OK for you |
Maybe I should make a new tag, like |
I'm glad with that solution. Thank you so much @Gregwar. |
@Gregwar you will make a new release? |
I tagged master |
Many thanks @Gregwar :D |
Hi,
I've a array of options to Estado field:
And I'm set like a documentation:
And in html I use:
But the form html returne with options in reverse order and with a empty in first position:
Any solution?
The text was updated successfully, but these errors were encountered: