Editing an Html node content?

Hey, is it possible to edit the content displayed in an HTML or ‘Next Form’ node and pass it to next node?

Target flow:

  1. Form request
  2. OpenAI answer
    3.?? Editable Html or prefilled ‘Next Form’ node ?? to modify OpenAI answer
  3. GSheet recording.

Many thanks

Information on your n8n setup

  • **n8n version:**17
  • **Database (default: SQLite):**Postgre
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**self hosted
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**Docker
  • **Operating system:**Windows

hello @AyS_0908

Yes, you can use the Next form page with dynamic content set with the JSON

Thank you @barn4k.
Just to be sure: will this ‘next form’ both get the content of the previous node (cf OpenAI) and enable to edit it due to the use of Json?

Thanks a’d sorry for such basic question…

What do you mean? You can refer to any previous node in the Next Page node. The only difficulty is to build the json structure so the page will be generated properly.

Sorry I was not clear.

My workflow : trigger form > OpenAI node > Html node

My wish in the html node is to both:

  • Collect the OpenAI node output
  • AND be able to modify/edit this output as an end-user

Can you prvovide an example of what you are trying to achieve?
It’s not quite clear for me

I understand what he’s talking about, I have the same issue

Can a Next form node have a default value? and that value will be from the inputs from the wired node, if yes, what would be the right approach

1 Like

I’m not aware of this. But I suppose no. What is the use case? Why you need a default value?

Let’s imagine the user is working on a Linkedin Post.

  • In form 1# they ask structured questions (e.g. bolean, opions lists…)
  • Answers are transformed into a prompt and sent to an AI
  • AI response appears in a Form #2 in an editable field, e.g. can be modified by the user AND used as input for the rest of the workflow
    Thanks
1 Like

@pdwarf can you please take a look on this also? :sweat_smile:

1 Like

Hey @AyS_0908, it took me a while to wrap my head around the use case, but now I get it. Unfortunately, the answer right now is that you can’t do this.

We’re considering allowing <input> tags on the Custom HTML form field. This might unlock it for you, as you can then pass a value to prefill that input with content from the AI node in a multi-step form.

2 Likes

Thank you @pdwarf . Do you “consider” or “plan” it :slight_smile: ?

I see some example of using webhook to achieve this, or sending the output from AI agent “tool” to another work flow which handles the data. But both methods are not ideal as I was hoping to have AI agent keeps generating new text if the user for next form click “re-run”.