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 / Hide form until Email ...
Power Pages
Answered

Hide form until Email is confirmed

(0) ShareShare
ReportReport
Posted on by 10

Hi, 
I want to hide the form and update button until the email are confirm?

I have tried to write a JS script, without any luck. 

 

I can only hide the hole content with the Confirm email button also with the below code: 

$(document).ready(function(){
console.log(555,"JS-Hide Profile web form");
$(".col.med-8").hide();

})

 

The JS that i cant figure our is this:

$(document).ready(function(){
$(".col-md-8").change(onDiplaySectionChnage);
onDiplaySectionChnage();

function onDiplaySectionChnage() {
var varConfirmEmail = $("#adx_identity_emailaddress1confirmed").find("option:boolean").boolean();
if(varConfirmEmail === false){
$("firstname").hide();
$("lastname").hide();
$("email").hide();
$("business phone").hide();
$("update").hide();
}
else(
$("firstname").show();
$("lastname").show();
$("email").show();
$("business phone").show();
$("update").show();

}
});

 

 

2023-06-12_13h55_57.png
Categories:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi, you can hide those using many different JS codes

    if you want to hide everything, it's probably easier to hide at the fieldset level, then the update button as well, for example:

    $(document).ready(function(){
     // if (e-mail not confirmed)
     $("fieldset").hide();
     $("div.actions").hide();
    });

    I just tested this, and seems to work just fine 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 65

#2
11manish Profile Picture

11manish 55

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard