Setting a field after meeting a condition

I am wanting to set a Person or Group field called "Approver" when a certain condition is met on my form. I have a field called "Claim Total" that is a currency field. I want to set the "Approver" field to a specific person if the amount in the "Claim Total" field is over $500. Is there a way to do that?

Hey @zddummer,

You can do this with custom JS. Add the following script to your form and change the field names to these of your fields.

fd.spRendered(function() {
    fd.field('Currency').$on('change', function() {
        if (fd.field('Currency').value > 500) fd.field('Person').value = 'Ilia Lazarevskii';
    });
});