facebook

OnClick remove text?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330172 Reply

    mobiuser62
    Member

    How do you remove sample text in forms on click?

    #330176

    Unknown Author
    Participant

    Don’t think of it as removing text. Think of it as replacing it with nothing. See the help pages for how to set the text in a widget to equal “”.

    -1TC

    #330177

    Unknown Author
    Participant

    In one of my apps, I have the form reset itself if the user clicks the back button rather than submitting the form. You can do that with prepage transitions. Again, lots of examples on this site.

    #330235

    Hi mobiuser62,

    To remove the sample text of a texfield when is clicked try to add this snippet on phoneui.documentReadyHandler function in your <appname>_custom.js file.

      $('#m1-AppName-textField1').click(function(){
      $('#m1-AppName-textField1').val(""); 
      });
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: OnClick remove text?

You must be logged in to post in the forum log in