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"});
}
I tried to hide a Submit button in a form of 14.1 CP2 OnPrem. the element mentioned didn't exist here.
The follwing worked to hide any submit / next button:
angular.element('.brand-button-primary').hide();
Thanks David Franco for the hint!