<p>I am using a similar approach with the code provided <a href="https://craftcms.stackexchange.com/questions/1318/how-to-get-matrix-editor-into-frontend">here</a>.</p>

<p>I am able to get an initial block to save, but when I go back to the form and try to add another a new block is not created. My application is basically to add notes to an entry. The notes contain an editorName, reviewNotes and a datetime stamp.  What am I doing wrong?</p>

<pre><code>&lt;input type="hidden" name="fields[editorialHistory][new43][type]" value="block"&gt;
&lt;input type="hidden" name="fields[editorialHistory][new43][fields][editorName]" value="{{currentUser.getFriendlyName()}}"&gt;
&lt;input type="hidden" name="fields[editorialHistory][new43][fields][reviewDate]" value="{{"now"|date("F j, Y, g:i a")}}"&gt;
</code></pre>

CC BY-SA 3.0
2014-09-21T10:24:14.633Z
Is the handle of your block type actually named "block"?  One thing that I found to block the update/creation of blocks was a missing/invalid block type. If that doesn't help, could you perhaps put the whole entry form in a pastebin somewhere?
Fred Carlsen
CC BY-SA 3.0
2014-09-21T13:38:12.610Z
Yes, the block type is actually "block". Unfortunate and I will probably change that.
David A McInnis
CC BY-SA 3.0
2014-09-21T15:22:09.767Z
Could you update your question with the whole form code?
Fred Carlsen
CC BY-SA 3.0
2014-09-22T18:13:00.720Z
Unfortunately I abandoned this idea in favor of s simpler implementation that does not require matrix fields. I wish I still had the html form code but do not.
David A McInnis
<matrix>
Adding Matrix from frontend form
# Adding Matrix from frontend form

(Asked by: username_0 on 2014-09-20)

I am using a similar approach with the code provided here.
I am able to get an initial block to save, but when I go back to the form and try to add another a new block is not created. My application is basically to add notes to an entry. The notes contain an editorName, reviewNotes and a datetime stamp.  What am I doing wrong?

**Tags:** matrix
> **Comments:**
> **username_1**: Is the handle of your block type actually named "block"?  One thing that I found to block the update/creation of blocks was a missing/invalid block type. If that doesn't help, could you perhaps put the whole entry form in a pastebin somewhere?  
> **username_0**: Yes, the block type is actually "block". Unfortunate and I will probably change that.  
> **username_1**: Could you update your question with the whole form code?  
> **username_0**: Unfortunately I abandoned this idea in favor of s simpler implementation that does not require matrix fields. I wish I still had the html form code but do not.  

---

## 0 answers

