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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / JavaScript in Model dr...
Power Apps
Suggested Answer

JavaScript in Model driven app

(1) ShareShare
ReportReport
Posted on by 18
Is it possible to use JavaScript to build a Progress bar for a form in Model driven app to track progress from tab to tab. Something like the business process flow , but without the stages involved in BPF
 
Anyone ever done this or knows how ?
Categories:
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    Yes, two ways to do it:

    1. HTML web resource with JS: render a progress bar in an HTML web resource, use formContext.ui.tabs.get("tabName").addTabStateChange() to detect tab navigation, and postMessage to update the bar. Add the web resource to the form header.

    2. PCF control (cleaner): build a PCF bound to a numeric field, update the field value via form JS as tabs are visited, the PCF renders the bar.
    For progress logic: simplest is tracking how many tabs the user has visited out of the total.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    11manish Profile Picture
    3,333 on at
    Yes, it can be done with JavaScript, but a custom PCF control is typically the best long-term solution if you want a professional progress bar that tracks progress
     
    across tabs in a Model-Driven App form.
  • Gbolahan Akinola Profile Picture
    18 on at
    @11manish @Valantis

    Thank you so much . Please do you have any video or blog explaining how to achieve this with custom PCF ?
  • Valantis Profile Picture
    6,735 on at
    @Gbolahan Akinola unfortunatly i dont have anything like video or blog post. 
  • 11manish Profile Picture
    3,333 on at
     
    you can take the reference below :
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard