# |
Jul 18th 2018, 09:29 |
mr.mjsm |
https://paste.ofcode.org/gWspuC5CXzeEmHLfSj4yMa |
# |
Jul 18th 2018, 09:28 |
alexdd55 |
yes it is… :) |
# |
Jul 18th 2018, 09:28 |
josbeir |
ah wait it is :) |
# |
Jul 18th 2018, 09:27 |
mr.mjsm |
just a sec |
# |
Jul 18th 2018, 09:27 |
mr.mjsm |
you know what i will post the whole source |
# |
Jul 18th 2018, 09:27 |
josbeir |
the one above is wrapping around all others |
# |
Jul 18th 2018, 09:27 |
josbeir |
no |
# |
Jul 18th 2018, 09:27 |
alexdd55 |
can not see the problem |
# |
Jul 18th 2018, 09:27 |
alexdd55 |
all forms are closed |
# |
Jul 18th 2018, 09:27 |
josbeir |
no ? |
# |
Jul 18th 2018, 09:27 |
josbeir |
is wrapping around your list of edit items |
# |
Jul 18th 2018, 09:27 |
josbeir |
your main form above |
# |
Jul 18th 2018, 09:26 |
mr.mjsm |
File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBS0MLQ9X/pasted_image_at_2018_07_18_12_26_pm.png / https://slack-files.com/T053DPNCM-FBS0MLQ9X-cb12c11526 - <@U51A5M2DS> |
# |
Jul 18th 2018, 09:26 |
madbbb |
@mr.mjsm check onclick event is firing. |
# |
Jul 18th 2018, 09:26 |
neon1024 |
There are also no validation errors in the entity! |
# |
Jul 18th 2018, 09:26 |
madbbb |
I can't find nested form in his source |
# |
Jul 18th 2018, 09:26 |
neon1024 |
I am saving a Customer with multiple Addresses. I can marshall the Addresses just fine, the data changes, and it’s marked dirty. However the changes are never persisted to the database. What am I missing? |
# |
Jul 18th 2018, 09:25 |
saeideng |
probably you forgot to close a tag |
# |
Jul 18th 2018, 09:25 |
saeideng |
see source of page |
# |
Jul 18th 2018, 09:24 |
mr.mjsm |
can you clarify this, to me. I don't see how the forms are nested, i closed the first form then created another form. how is that considered nesting ? |
# |
Jul 18th 2018, 09:24 |
josbeir |
if you set |
# |
Jul 18th 2018, 09:24 |
josbeir |
https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-post-links |
# |
Jul 18th 2018, 09:24 |
saeideng |
limitation in Html |
# |
Jul 18th 2018, 09:23 |
josbeir |
forms inside forms wont work thats why it wont work |
# |
Jul 18th 2018, 09:23 |
mr.mjsm |
@josbeir the default, didn't touch that. |
# |
Jul 18th 2018, 09:23 |
josbeir |
you need to pass the block option so that the generated forms are echo'd outside your main form |
# |
Jul 18th 2018, 09:22 |
josbeir |
@mr.mjsm are you using postLink or postButton in formHelper |
# |
Jul 18th 2018, 09:21 |
saeideng |
note from cookbook : Be careful to not put a postLink inside an open form. Instead use the block option to buffer the form into a view block |
# |
Jul 18th 2018, 09:21 |
mr.mjsm |
i dont see the nested part ! |
# |
Jul 18th 2018, 09:20 |
neon1024 |
Yeah, don’t nest forms. |
# |
Jul 18th 2018, 09:20 |
mr.mjsm |
my code is just like <form> .... </form> |
# |
Jul 18th 2018, 09:18 |
saeideng |
I did not see your code |
# |
Jul 18th 2018, 09:18 |
saeideng |
`<form> main form .....<form> delete btn</form> </form>` |
# |
Jul 18th 2018, 09:17 |
saeideng |
`postLink()` is useful in this case |
# |
Jul 18th 2018, 09:17 |
mr.mjsm |
is it within though? |
# |
Jul 18th 2018, 09:16 |
saeideng |
you can not use a `form` within another `form` |
# |
Jul 18th 2018, 09:14 |
mr.mjsm |
File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBS9MK56G/-.html / https://slack-files.com/T053DPNCM-FBS9MK56G-e3c8086faa |
# |
Jul 18th 2018, 09:10 |
alexdd55 |
@mr.mjsm can you show the html code from the delete button, which is rendered on the website? |
# |
Jul 18th 2018, 09:09 |
saeideng |
:+1: |
# |
Jul 18th 2018, 09:08 |
alexdd55 |
@saeideng thanks. works perfectly |
# |
Jul 18th 2018, 09:08 |
alexdd55 |
i used exactly that on xmlandjson downloads.. was wondering why i should use it… |