Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

Custom Button | onclick function to open a pop-up form

(0) ShareShare
ReportReport
Posted on by

Hi,

first I will let you know what I am trying to achieve.

 

I got an readyOnly form and my client wants a custom button to edit only one field (a status).  

So far I did manage to create a custom button, however I have not the expertise to write a javascript in order to link the button with a form neither to make the form appear as a pop-up window. 

 

Could anyone provide me help with writing a javascript to link a button to a specific form plus to let the form appear as a pop-up on the onlick event.

 

Thank you very very much!

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Custom Button | onclick function to open a pop-up form

    Hi, do you need it to be via a pop-up window? 

     

    The easiest/simplest way to achieve your requirement, would be having your Entity Form as Edit mode, and set all fields (besides your status field) as read-only in the Dataverse form.. this way those fields wouldn't be updated when you submit the form

     

    another thing to mention is that if the status field is the OOB Status Reason, I have the feeling you can't update that via Portals, you would need a workflow or Web API to update that

     

    Another possible approaches for what you need:

    • Use classic Workflows and add them to your Entity Form, this would appear as a button in your form.. so basically you can have different buttons for "Mark record as XXX", and this would trigger the workflow which would update the record
    • Other option would be using Web API which is what I think what you are trying to do.. that would work but it seems too much work in my opinion 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35