cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pjwilson87
Helper I
Helper I

Run JavaScript Function on Web Page - Checkbox

I am trying to select 2 options from a filter list using the 'Run JavaScript Function on Web Page' action.

I also tried using other PAD actions unsuccessfully since I am unable to get my preferred option of using JavaScript.

 

Any idea what I am doing wrong with my JavaScript action or is there a different PAD action that is possible?

 

PAD Flow:  https://power.automate.gallery/LjiRUtvAeAt2

 

 

1 REPLY 1
PAG
Resolver I
Resolver I

Hello @pjwilson87 

 

Replace your last "Run JavaScript function on web page" with this:

WebAutomation.ExecuteJavascript BrowserInstance: Browser Javascript: $'''function ExecuteScript() {
   $(\'input[value=\"72\"],input[value=\"105\"]\').prop(\"checked\", true);
    $(\'.btn.btn-primary.btn-lg.oracletaleocwsv2-close-popup-trigger\').click();
}''' Result=> Result

Here is the complete solution:

https://power.automate.gallery/3YIbwZkDWVHs 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,156)