NetTalk Central

Author Topic: Clear upload field  (Read 3798 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Clear upload field
« 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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Clear upload field
« Reply #1 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

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Clear upload field
« Reply #2 on: May 05, 2015, 04:54:47 AM »
Thanks Bruce