Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

File Field Disabled first showup

Posted on by 162

Experts,

Just run into a weird thing, not sure by design or something ...

I have a file field, i.e. that field end users can upload a file, which is hidden by default.

When a toggle is set to yes, the field will show, and it is working that way.

However, the field is showing as disable, i.e. end users cannot click.

When I scroll up or scroll down, or click another tab and then click back (that form has multiple tabs), the file field become enabled.

After that everything is working as it should be; toggle button to yes, no, the file field show / hide, when show up it is always enabled.

Any suggestions?

Thanks a million!

Ning  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: File Field Disabled first showup

    Hi Ning Zhu,

    It's a really weird thing. I tested this on my side and it could work fine.

    You would better raise a ticket to contact Microsoft.

  • Ning Zhu Profile Picture
    Ning Zhu 162 on at
    RE: File Field Disabled first showup

    setVisible(true/false) would only show/hide this field. -- Exactly, so we do not really understand why the field is showing as disabled for the very first time.  

    Also, we figured out, it is not click or scroll to make the field enabled, but simply waiting for some random time it will become enabled (from several seconds to one minute).

    After the first time, it is enabled, then next time it will be displayed as enabled immediately.

    Yes, we only toggle for that field on edit form, for the new form, you do not see those fields at all.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: File Field Disabled first showup

    Hi Ning Zhu,

    setVisible(true/false) would only show/hide this field. It would make the field disabled. Did you use the setDisabled() function?

    And when your record is creating, the file field would be disabled.

    pastedimage1663132776281v1.png

    After this record is created, this field would be enabled.

  • Ning Zhu Profile Picture
    Ning Zhu 162 on at
    RE: File Field Disabled first showup

    JS to hide and show, setVisible(true/false) ...

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: File Field Disabled first showup

    Hi Ning Zhu,

    Could you tell us which way you used to hide the file field, Business Rule, JS or something else?

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

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans