Neea script during On Submit on Catalog client script

Saib1
Tera Guru

Hi all,

 

When i select the Environment , values which will get added to roles from system properties.

 

Saib1_0-1699865894190.png

When user clicking on submit , i need to validate the --None-- should not be selected

 

Saib1_1-1699865970153.png

 

System property

Saib1_2-1699866006927.png

 

 

1 ACCEPTED SOLUTION

Anand Kumar P
Giga Patron
Giga Patron

Hi @Saib1 ,

function onSubmit() {
    var requesterValue = g_form.getValue('requester');//change requestor varible backend name
    if (requesterValue === '--None--') {//change exact value with --None--
        alert('Please select a valid requester before submitting the form.');
        return false;
    }
    return true;
}

You can write onSubmit catalog client script .

Please mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand

 

View solution in original post

1 REPLY 1

Anand Kumar P
Giga Patron
Giga Patron

Hi @Saib1 ,

function onSubmit() {
    var requesterValue = g_form.getValue('requester');//change requestor varible backend name
    if (requesterValue === '--None--') {//change exact value with --None--
        alert('Please select a valid requester before submitting the form.');
        return false;
    }
    return true;
}

You can write onSubmit catalog client script .

Please mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand