Forum Discussion

gberge's avatar
gberge
Occasional Contributor
3 years ago

Clearing a textbox in mobile devices in script

I have a problem where I need to enter in new text in a control that already has some text in it   I tried the following to overwrite the existing text:     // Select the existing text in the tex...
  • Marsha_R's avatar
    Marsha_R
    3 years ago

    You can always try several backspaces.  Also, "may fail" wouldn't keep me from trying it if it was my test, but that's up to you.

     

    If you were performing this action manually, what would you do to clear the space?

     

     

  • gberge's avatar
    gberge
    3 years ago

    I was wrong about iOS. The Keys method for iOS devices does seem to delete the existing text in the control prior to entering the new text. I thought that I saw the same behaviour between Android and iOS but apparently I was wrong.

     

    The Keys method doesn't delete the existing text on Android devices but this is fixed by first entering multiple backspaces.