
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();
}
});
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