You would have to edit the widget xml file to change return types.
https://docs.mendix.com/refguide6/xml-reference-guide
I think you will have to do some more customizing of the widget to make your solution work.
Hi Craig,
If I'm understanding your problem correctly, I think that conditional visibility might be a better solution here, than trying to modify a custom widget.
Assuming you have a Leave entity of some sort with attributes for StartDate, EndDate, Type where Type can be "planned" or "unplanned", perhaps you could use conditional visibility to only show the EndDate datepicker when the Type is "planned," and when Type is "unplanned," leave the EndDate attribute empty and instead show "Ongoing" in plain text.
Would this help address your issue?