Sharing a subtle Modern UI behavior that's easy to miss when adding tooltips or custom child markup to existing fields.
Inside a <qp-fieldset>, a regular childless <field> copies all of its attributes (config-type.bind, config-rows.bind, config.bind, control-type, etc.) onto the generated <qp-field>:
<field name="Notes" config-type.bind="1" config-rows.bind="5"></field>
<!-- renders a multi-line textarea as expected -->However, as soon as you add any child element inside <field> (such as <qp-tooltip>), qp-fieldset takes a different branch in convertFieldMarkupToDescriptor and only carries over class, caption, caption.bind, and pinned. Any config-*, config.bind, or control-type attributes on <field> are silently dropped with no build error and no runtime warning:
<field name="Notes" config-type.bind="1" config-rows.bind="5">
<qp-tooltip id="ttNotes">Help text</qp-tooltip>
</field>
<!-- renders a plain single-line input instead of a textarea -->How to fix it
Wrap an explicit <qp-field> inside <field replace-content> and move the config-* / control-type attributes onto <qp-field>:
<field name="Notes" replace-content>
<qp-field control-state.bind="View.Notes" config-type.bind="1" config-rows.bind="5">
<qp-tooltip id="ttNotes">Help text</qp-tooltip>
</qp-field>
</field>Automated check in AcuMate
There was an open issue (#24) in Acumatica/AcuMate asking for an HTML validator warning to catch this automatically. I submitted a PR that adds this check (and also stops AcuMate from warning on control-state.bind="state" inside <field replace-content>):
https://github.com/Acumatica/AcuMate/pull/26
Worth keeping an eye out for this when working on Modern UI screen extensions!