Dogbonesix Active Member Licensed User Longtime User Oct 21, 2021 #1 I have a need to use a placeholder in a textbox in B4J. In B4A hint text it is a no brainer but for B4J there is no option other than the HTML page. However during runtime the placeholder/hint needs to change from time to time. How can the placeholder/hint for a textbox be changed at runtime?
I have a need to use a placeholder in a textbox in B4J. In B4A hint text it is a no brainer but for B4J there is no option other than the HTML page. However during runtime the placeholder/hint needs to change from time to time. How can the placeholder/hint for a textbox be changed at runtime?
EnriqueGonzalez Expert Licensed User Longtime User Oct 21, 2021 #2 Dogbonesix said: there is no option other than the HTML page. Click to expand... I don't understand what you mean. Are you using a webview? An html editor ? If you mean a fx textbox then. Use setPromptText If you do not haveit then use javaobject Txt.as(javaobject).runmethod("setPromptText",array("your text")) Upvote 1
Dogbonesix said: there is no option other than the HTML page. Click to expand... I don't understand what you mean. Are you using a webview? An html editor ? If you mean a fx textbox then. Use setPromptText If you do not haveit then use javaobject Txt.as(javaobject).runmethod("setPromptText",array("your text"))
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2021 #3 You should use B4XFloatTextField from XUI Views. Upvote 0