NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on May 04, 2015, 12:11:43 AM

Title: Clear upload field
Post by: olu on May 04, 2015, 12:11:43 AM
quick question on NT, I have a upload field and have a button that I use to clear the field when pressed. this works but immediately I click save button the upload field get populated again by the cleared entry.

See example below, i have added a remove picture button to mailbox update form.

[attachment deleted by admin]
Title: Re: Clear upload field
Post by: Bruce on May 05, 2015, 04:36:16 AM
File Upload fields are preserved when the form is in Change mode, because obviously you don't want to have to re-upload the picture every time the form is changed.

So you will need to set a session value with the remove button, then in the CompleteForm routine, at the bottom, check that value and clear MAI:MailBoxPicture.

cheers
Bruce
Title: Re: Clear upload field
Post by: olu on May 05, 2015, 04:54:47 AM
Thanks Bruce