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 / 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,368 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

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
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard