Skip to main content

Notifications

Community site session details

Community site session details

Session Id : t5i164oIOVA9S3aYuVl0cw
Power Pages - Power Apps Portals
Unanswered

Target submit button inside form detail using javascript

Like (0) ShareShare
ReportReport
Posted on 28 Oct 2020 18:10:30 by 18

Hi Team, 

 

I am trying to target the submit button inside the entity form to either enable or disable it using an if function. I was able to target the fields plus their value using the code below. How can i target the submit button inside that form using javascript? Is this even possible?

 

 

$(document).ready(function() {

const project = $("#cr578_projectbudget").val();
const year1 = $("#cr578_year1").val();
const year2 = $("#cr578_year2").val();
const year3 = $("#cr578_year3").val();
const year4 = $("#cr578_year4").val();
const year5 = $("#cr578_year5").val();
}};
  • oliver.rodrigues Profile Picture
    9,315 Most Valuable Professional on 28 Oct 2020 at 20:19:11
    Re: Target submit button inside form detail using javascript

    Hi, can you try the following:

    $(".form-custom-actions").find("input[type=button]").hide();

     that should hide the submit button

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Pages - Power Apps Portals

#1
Ajlan Profile Picture

Ajlan 6

#2
TonjeWaasjo Profile Picture

TonjeWaasjo 4

#3
VDI Profile Picture

VDI 2

Overall leaderboard
Loading started