new AppGiniField("last_name")
.placeholder("Last Name");
Works fine for a textbox but what about a lookup field?
Placeholder in lookup field
- baudwalker
- Veteran Member
- Posts: 188
- Joined: 2015-02-03 08:08
- Location: Bellingen NSW Australia
Re: Placeholder in lookup field
As mentioned in the docs ( https://appgini.bizzworxx.de/products/j ... ceholders/ ) this function applies to <input /> fields, only.
Anyway, I consider adding this feature on lookups in a future version. Unfortunately I have seen many users struggling with placeholder-option for select2 dropdowns due to several problems. There seems to be a bug in that lib. Finding a hooks-only solution will be even harder because I cannot inject code while to control gets written - only after it has been rendered. So I cannot promise if this will work at all, sorry.
For now I recommend using the helptext (description field in AppGini).
Anyway, I consider adding this feature on lookups in a future version. Unfortunately I have seen many users struggling with placeholder-option for select2 dropdowns due to several problems. There seems to be a bug in that lib. Finding a hooks-only solution will be even harder because I cannot inject code while to control gets written - only after it has been rendered. So I cannot promise if this will work at all, sorry.
For now I recommend using the helptext (description field in AppGini).
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
- baudwalker
- Veteran Member
- Posts: 188
- Joined: 2015-02-03 08:08
- Location: Bellingen NSW Australia
Re: Placeholder in lookup field
Opps... I should have read the instructions