Button to add templated form / expander

Hello! Having difficulty finding comparable support online. From a button on_click event, is it possible to callback return a ‘templated’ form / expander (with inputs)? e.g. an order submission where the user would like to add another order with identical fields and different input values. Thanks very much!