Custom HTML form element does NOT evaluate expressions per PR #13755

Describe the problem/error/question

I’m using a custom html form element in my Slack “send message and wait” (human-in-the-loop) workflow. I entered an expression, i.e. {{ $json.key_name }}, to the custom html text area. There was no option for fixed versus expression, but the expression turned green (instead of grey). I assumed this would be evalutated when the human-in-the-loop form was displayed, but instead the content just shows the expression exactly as entered into the text area ({{ $json.key_name }}).

According to this pull request, those custom html fields should evaluate expressions before displaying their content on the form’s web page. Is there something I’m missing?

What is the error message (if any)?

None

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.99.1
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker container, AWS ECS
  • Operating system: Ubuntu

Hey @erockx

Try the following

  1. Pre-process the data - Use a Set node or Code node before the form to prepare static HTML content with the values already substituted
  2. Use the HTML node separately - Create your custom form using a standalone HTML node instead of the Form node’s custom HTML field

See if that works for you

Thank you for your response. Unfortunately, both of those suggestions require JSON data from a previous node to be put in an expression with the “Custom HTML” field. Therefore, I don’t think doing either will help.

<p>This html is static.</p>
{{ $json.dynamic_html }}

I’m pretty sure it doesn’t matter which source node generates the HTML values if the expression doesn’t getting evaluated. It seems like PR #13755 only works on the Form trigger and Next Form nodes. It really needs to be expanded to work on all the “Send and Wait” nodes like the Slack “Send Message and Wait for Response” node type I’m using.

I’m using the 1.99.1 community edition via the Docker container. I assume that anything in Github in the 1.99.1 tag is part of that community edition.

Thanks,
Eric