i want to tick the checkbox by using cur_frm.set_value(‘roles_html’, 1);
i tried using jQuery but it didnt tick the checkbox: let ps_user = $("div[data-fieldname='roles_html'] div div[data-user-role='Accounts Commission User'] input[type='checkbox']"))
Hi @NCP
I need to create many User each time, so I try to do it on automation instead of manually check the checkbox for roles_html where each time I will auto generate a new user with bundle of role in roles_html
Let say a new user is created with the name of Supplier Jojo
it should ticked the roles_html ['Supplier', 'Stock User', 'Sales User']