Clear form elements

Questions and answers for designing and implementing forms in Servoy

Clear form elements

Postby fgsmartest » Thu Apr 12, 2012 10:19 am

When I use the showform() method to call a form that was just used to enter data, it calls the form and displays the imformation that was previously entered, i want to clear the text boxes, etc before calling the form again. have any ideas?
fgsmartest
 
Posts: 38
Joined: Thu Apr 12, 2012 12:40 am

Re: Clear form elements

Postby jdbruijn » Fri Apr 13, 2012 11:03 am

If the elements on your form are based on a foundset, you can create a new record, thus clearing the elements.
If the elements are based on form variables than you have to clear the variables in the onShow event of the form.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: Clear form elements

Postby fgsmartest » Sat Apr 14, 2012 8:14 am

Thanks sooooo much, it worked
fgsmartest
 
Posts: 38
Joined: Thu Apr 12, 2012 12:40 am


Return to Forms

Who is online

Users browsing this forum: No registered users and 5 guests

cron