What I’m trying to do: I have pleading paper, similar to the above image, that will have static vertical lines and line numbers as shown, with dynamic content in the body of the page(s). I want to create a custom HTML Form that will hold the static HTML from the paper above, then make a parent/child Form with input fields that will display the dynamic content on the static HTML Form.
What I’ve tried and what’s not working: I made the custom HTML Form, and just realized I don’t know the best way to display the Form/Table data in the body of the custom HTML Form. I was trying to avoid having to use the html/slots approach, if possible.
The code below is a basic example of how I accomplish this in another program - curious to know if I can accomplish something similar within Anvil - call/fetch Table data within the custom HTML Form and hold within a variable/function/etc., then insert the data into the HTML code for output.
Code Sample:
<html escape>
fetch_data_variable = data.from.this.table.row
<html escape end>
<html>
<body>
<div>Here is a custom HTML template</div>
<div>my name is <%fetch_table_variable%></div>
</body>
</html>
Output = Here is a custom HTML template
my name is Adam