0
Besvaret

Prompt from Empty text field not working

Jen Hoyte 10 år siden opdateret 10 år siden 4
I am using a text field with no text in it. I am trying to create an input box where users can enter data. So I don't want any text in it to begin with. This used to work in the last version.

In the example supplied earlier, there is text in the text field.  This works. But if there it no text, it does not work anymore.

Svar

Svar
Besvaret
The new engine renders a text element based on the length of the text itself.  If you have no text in your text box then there is no area for the user to really tap, so it's best you add a transparent element on top of the text box and add the action set to the transparent element.

This is not a bug.
Svar
Besvaret
The new engine renders a text element based on the length of the text itself.  If you have no text in your text box then there is no area for the user to really tap, so it's best you add a transparent element on top of the text box and add the action set to the transparent element.

This is not a bug.
Ohhh so that's how it works now.  Well i tried a filled rectangle, but that does not let you write text in it.  But it does accept the tap and writes the text to the text box.  So looks like for every one of the 34 text fields I need, I will have to add a transparent rectangle to it. ok Thanks.
Another option that I like is to enter an underscore into the text element, like this: "____________" like in the fill-in-the-blank tutorial: Fill In the Blank.
Good idea.  Will keep this in mind.  Thanks.

Kundesupport af UserEcho