Important Update: Community URLs redirect issues are partially resolved. Learn More. .
2022-11-04 11:53 AM
I am trying to create a custom object to save a record based on a value in a values list. The field ID is 38492 and the value ID is 12987. Below is what I have so far, but no luck, any ideas?
<script type="text/javascript">
Sys.Application.add_load(function() {
if ($CM.getFieldValue(38492) == '12987:0') {
$("#master_btnApply").click();
()
}
});
</script>
2022-11-17 06:32 PM
Why are there two parenthesis after the button click?
<script type="text/javascript">
Sys.Application.add_load(function() {
if ($CM.getFieldValue(38492) == '12987:0') {
$("#master_btnApply").click();
()
}
});
</script>