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 :
Power Platform Community / Forums / Power Pages / Powerpages Forms and M...
Power Pages
Unanswered

Powerpages Forms and Model-Drive App Form

(0) ShareShare
ReportReport
Posted on by 228
In my model-drive app, which serves as the intake system for requests submitted through my powerpages forms, I created a new intake form called engagement kick-off. The tab for the form should only appear when a request of that type is opened. In the screenshot below, the request that is open is actually of the type "Ala Carte Request", yet the Engagement Kick-Off tab appears. How do I get the tab to only appear when the request is of that type?
 
Categories:
I have the same question (0)
  • Verified answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    Javascript
     
    function toggleEngagementKickoffTab(executionContext) {
        var formContext = executionContext.getFormContext();
        var requestType = formContext.getAttribute("request_type").getValue(); // Replace "request_type" with the logical name of your field
        if (requestType == 'Engagement Kick-Off') {
            // Show the Engagement Kick-Off tab
            formContext.ui.tabs.get("EngagementKickoffTab").setVisible(true); // Replace "EngagementKickoffTab" with your tab's logical name
        } else {
            // Hide the Engagement Kick-Off tab
            formContext.ui.tabs.get("EngagementKickoffTab").setVisible(false);
        }
    }
     
    Step-2
    • Go to Settings > Customization > Web Resources.
    • Create a new Web Resource for the JavaScript file and add your code.
    Step-3
    • In your form editor, go to Form Properties.
    • Under Events, add the OnLoad event and attach the JavaScript Web Resource.
    • In the Function Name, enter the name of the function (e.g., toggleEngagementKickoffTab).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard