facebook

Making TextAreas visible and invisible: CLOSED

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

    I have a quick question – How can I make a MobiOne TextArea widget visible or invisible? My app is using a calculation for volume, and sometimes there is one variable, sometimes two variables, and sometimes three variables for the user to input something.

    I want to make the app “clean” so when a situation arises where only a single input is required by the user, only the single TextArea widget will be visible while the other two are invisible. When the user needs more, the additional TextArea widgets will become visible.

    I am using the following ….

    0) MobiOne v2.6.1 (20140109)

    1) Windows OS version (XP Professional SP3)

    2) I am writing in Native iOS Mode for an iPhone 4/4S, Device OS is 6

    Can you tell me how to easily make a TextArea widget visible and invisible?

    Thanks,

    Mike

    #346859 Reply

    Brandon
    Member

    You can use css.

    $(‘#m1-yourformname-textArea1’).css(‘visibility’,’hidden’);
    or
    $(‘#m1-yourformname-textArea1’).css(‘visibility’,’visible’);

    #346862 Reply

    Brandon –

    That worked perfectly!

    Thanks for the help.

    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Making TextAreas visible and invisible: CLOSED

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