Obviously, there is a way (and very easy way) to use Smart Templates with our flagship add-on ConfiForms.
ConfiForms is good at gathering data form your users in a structured way. But it can be used with many other use cases, such as providing the data stored within a form to a Smart Template.
This tutorial, Using embedded template with variables, shows how to use variables with template and how to set the values. It has the example of using the ConfiForms ValueView macro to do that as well, but there is another way also.
ConfiForms has a macro called CleanView (simplified brother of the ListView), which could render the contents of the form the way you define. We will use it in the example below and get the values from the for using this macro and
[entry.field_name]
notation. See ConfiForms add-on documentation and Accessing field values and properties for a reference if you are not familiar with ConfiForms add-on
The form configuration is simple:
Just 2 fields
- field1
- field2
Will store a record with the following values