Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codenameone text fields not getting cleared after exiting the aap

I need your help with my app, the scenario goes as follows:

  1. Start the app

  2. Enter details like password and all

  3. Exit the app after that

When I again start the app, I want all fields to be blank

The text i entered do not get clear .I have not given any specific instruction for text to not get clear.

like image 643
Rick Avatar asked Dec 07 '25 23:12

Rick


1 Answers

This is probably because the same Form instance is getting displayed. In your start method you should see these lines of codes:

        if (current != null) {
            current.show();
            return;
        }

Just remove this or add a method to clear al text and call it before it is getting shown

like image 113
Chen Avatar answered Dec 11 '25 21:12

Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!