Hi @Anonymous
In addition answer of @the365bit
If you are using Web Form:
Go to Web Form Step -> Click on 'Form Options' tab -> Add below code in JavaScript Section:
$(document).ready(function(){
$("#new_optionsetfieldlogicalname").change(function () {
// Get value of your trigger field
let currentVal = $("#new_optionsetfieldlogicalname option:selected").val();
//do some validation
if(currentVal == "459490001") {
$("input[type='button'][value='Submit']").hide();
} else {
$("input[type='button'][value='Submit']").show();
}
});
});
If you are using Entity Form and Web Page, then you have to add javascript into localized content page.
Note: You have to put your optionset field's logical name instead of "new_optionsetfieldlogicalname".
If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!