Checkbox Default option

Hey,

In salary structure, we have two tables, salary earning & salary deductions. Each has a checkbox ‘reduce Deduction for leave without pay’ . How can i write a script such that the checkbox is selected always by default ? and where should this be written. I tried giving ‘1’ as default value. But it didnt work. Any other way ?

Thanks,
Akarsh

1 Like

Default “1” should work. Where did you set it?

1 Like

I set it in the salary earnings and salary deductions doc type which has
the checkbox.

I checked and it works for me. Are you doing it in Salary Structure Deduction?

yes, Salary Structure Deductions as well as Salary Structure Earning

Worked for me, you may have customization that may be broken

just clear the Cache :slight_smile:

1 Like

right brother the cash was the problem
if it opend in private session it works well :v: