Placeholder in lookup field

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Placeholder in lookup field

Post by baudwalker » 2021-04-20 04:29

new AppGiniField("last_name")
.placeholder("Last Name");

Works fine for a textbox but what about a lookup field?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Placeholder in lookup field

Post by jsetzer » 2021-04-20 04:55

As mentioned in the docs ( https://appgini.bizzworxx.de/products/j ... ceholders/ ) this function applies to <input /> fields, only.

chrome_NAZcf0ykvo.png
chrome_NAZcf0ykvo.png (115.96 KiB) Viewed 1245 times

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 [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Placeholder in lookup field

Post by baudwalker » 2021-04-20 23:27

Opps... I should have read the instructions :(

Post Reply