I'd like to include a checkbox on my forms that, if checked, would add a snippet of XML below its parent name element (in addition to the role element that is already being applied):
<role><roleTerm authority="marcrelator">creator</roleTerm></role>
The idea here is to allow the submitter to add a second "creator" role to a name, in addition to their more descriptive role (author, photographer, whatever), in order to indicate for DC transformation and third-party tools which person is primarily responsible. This has implications for assigning DOIs, etc.
A checkbox seems like it would be the easiest way to implement this without drastically altering my name fieldsets or allowing too much freetext entry. However, I can't seem to figure out how to do this within the Form Builder - or whether it is indeed even possible.
A "checkbox" element type does exist, as does a "checkboxes" element type -- but as far as I can tell, they don't actually do anything in terms of adding XML to your metadata.
Is there a reasonable way to make this work?