Create a Form Element - solution to 'Your form should have an action attribute which is set to [url]' error

You know where the example says:

For example:

<[form action="/url-where-you-want-to…</form]>

And it doesn’t work if you follow it? Well you need to remove the ‘/’ in your own work. Took me some time and i couldn’t tell why it doesn’t work, because i followed the example precisely. Still don’t know whether and when to use that ‘/’ from the example.

Correct format (+nesting):
<[form action]="">
<[input type=“text” placeholder=“cat photo URL”]>

(remove the ]]]]s of course)

An URL starting with / is a relative URL, it will be added to the current domain, so links to the same site.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

Thank you so much!
I still am a bit frustrated by how everything works but your comment is very helpful!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.