kumsa29

Identity Suite: Solution to disable/enable/hide/display any button or form element in portal

Blog Post created by kumsa29 Employee on May 15, 2018

We can use angular jquery to disable/enable/hide/display any button or form element in the Identity portal.

This solution can help you in hiding the unwanted button on the form.

 

Example: Disabling and enabling the form default submit button.

 

var button = angular.element('.sigma-button.success');

if (button && prop.value == 'disable') {

    button.css({background:"grey", opacity:"0.5", "pointer-events":"none"});

}

else if (button && prop.value == 'enable') {

    button.css({ background: '#61cf64', color: 'white', opacity:"1", "pointer-events":"auto"});

}

Outcomes