What about adding an "alternate-target" attribute to the "submit" element? This will be used to specify an alternate target for the form (behind the lines it will use Javascript to change the form's target)
For example:
<form name="FindOrders" type="single" target="SearchOrdersScreen"> ... (search parameters)<field name="submitButton" title="Search"><submit button- type="button"/></field> <field name="submitButtonPdf" title="Export (PDF)"><submit button- type="button" alt-target="SearchOrdersScreenPdf"/></field> <field name="submitButtonCsv" title="Export (CSV)"><submit button- type="button" alt-target="SearchOrdersScreenCsv/></field>
</form>It will render three buttons, one for the standard html screen, one for PDF version and one for csv exports.
What do you think? Jacopo
smime.p7s
Description: S/MIME cryptographic signature