I wanted to use BS5 floating help labels for a field. The best I could come up with is to basically rebuild the entire wrapper stuff here in the widget, and then hide/unuse the original. I've also replaced "ploneform-widget-render" with a custom class on a site, but that customization applies to all forms on that site. But I really only want to customize this for one schema/form. Is that possible, or would I be better off just creating the entire form from scratch?
I ended up having a custom edit page. Thankfully the ploneform macros have slots to make the customization minimal. The relevant section looks like this:
This is good enough for my purpose here, but I could extend this to subclass the ploneform-macros view and make the widget render conditional on something defined on the form. This would allow you to use that form and define which fields you want floating in the view. I still think ideally you would set this on the schema, but that does not seem to be practical in the existing framework.