Hello !
I need to add a condition to the "CREATE RECORD BUTTON" in a sub grid, for that I need to check a field value on the form on the field "replyclient" and if it's "true", pop up an alert and stop the creating of the new record, if it's "false", execute the default behaviour : create the record.

Please find above the create record form when clicking on : "Nouveau Action ANS"

I added a JS action in the RibbonWorkbench button command to trigger the "alert" before the creation of the new record, and put this action above the default one

And I choose the command from the button parameters : 
i added a "debugger" statement on the JS code.
After publishing, I noticed that nothing changed when clicking on the button nothing works and can't not catch the JS to debug from my chrome browser.
So i dicided to create a new command and put inside only my custom JS and the resulats are weird !
Add this command to my button : 
after publishing : 
My JS triggers but from another button ? Is it a duplicated button ? Why do I have this behaviour ?
Thank you for understanding !









