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 Pages / Custom Button | onclic...
Power Pages
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!

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,449 Most Valuable Professional on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 33 Most Valuable Professional

Last 30 days Overall leaderboard