web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ADX Portal + WebForm Steps + file upload

(0) ShareShare
ReportReport
Posted on by

Hi all,

Hope this is the appropriate place  to ask as the ADX portal community forums are now locked. We have an ADX webform with multiple steps, the first of which asks the user if they wish to upload a file (as setup in the webform properties, this is an OOTB ADX feature).

The use case we've been asked to correct is that if a user moves forward and then back using the webform step controls -- the files should be cleared. Currently, whilst the file upload control shows no files visually in the UI, when a user submits the form the files are still being attached.

In essence, when you land on the page with the file upload fields, the files should be cleared out in the case where they were previously attached/selected.

Does anyone have any idea how I could implement this?

*This post is locked for comments

I have the same question (0)
  • Emmaneul James Abraham Profile Picture
    727 on at

    Hello

    Just a work around in web form step you can write some custom javascript  to clear file upload control value on load 

    Ex: $('#AttachFile').val('')

    Thanks and Regards

    James

  • Community Member Profile Picture
    on at

    Thanks James; this was the first thing I tried, however. Unfortunately the ADX webform steps appear to maintain their own 'history' of the controls between steps that modifying the DOM does not seem to effect.

  • Community Member Profile Picture
    on at

    Since the user does not see them, you could implement a workflow on the CRM side, that removes all attachments (annotations) expect for the most recent one ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans