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

 

 

3 REPLIES 3
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 

frankwent
Regular Visitor

Can I know what is the coding on Power Automate Gallery? is it the PAD flow backend code ? how can I generate it from my flow? 

pjwilson1987
Helper I
Helper I

@frankwent Copy the code from the PA Gallery link in PAG's reply and paste it into your PAD flow. All of the PAD actions will appear in your flow. The solution works perfect.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,495)