ERPNext Conference 2019* ERPNext.com Blog

Change Button's size of Button Inside A Dialog

custom_script

#1

I have a dialog box and inside that I created a custom button Named Save. On v10 I was able to change class of button using jquery but same isn’t working on v11. This is what I was using in version 10

$("Button[data-fieldname=send1]").addClass("btn-danger");

How to approach for the same in v11.
Here’s the preview of field (button) inside dialog (both of 10 and 11)
v10 v11


#2

Any help/suggestions ??


#3

Still waiting for some suggestion


#4

I am having the same issue on V11. But when a radio button is clicked. Anyone has any solution on this?


#5

Found the issue. If you do setTimeout to 1 sec it will work. I don’t know why is that. Somebody help.