How to use Custom Actions increasing working days button.
This is also not something you need an action for . Formulas are intended for pure computations like this . You can also do this in toddles formula editor without using custom js For a custom action , if you want to return something , you need to use ctx.triggerActionEvent('eventName', eventData) Where eventName is the name of your event (created on the left panel there under arguments ) And eventData is the data that event should return So quickly looking at the bottom of your code there , it would be ctx.triggerActionEvent('currentDate', currentDate) assuming you name your event 'currentDate ` Instead of return currentDate' It also uses JS You can create one from the left panel , under where you create custom actions




