Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi to all

Could someone, please, tell me where can I find documentation about different <cms:form> parameters?

I checked 'official' doc at
https://docs.couchcms.com/tags-reference/form.html
but can't see information about parameters like

- mode (create, edit... what else?)
- add_security_token (0,1)


In this 2019 post, @KK is telling that security tokens are automatically generated when using masterpages

then in other postfrom @KK I see this parameter added like add_security_token = '1'

Not sure to understand if it's still automatic or if we need to specify it?

<cms:form
masterpage = 'some-masterpage.php'
mode = 'edit'
enctype = 'multipart/form-data'
method = 'post'
anchor = '0'
add_security_token = '1'
id = 'k_admin_frm'
name = 'k_admin_frm'
>
Worth to read this doc page Concepts → Databound Forms, it's the first intro to 'modes' (speaking of which, there are 2 so far — mode='edit' and mode='create')
Thanks @trendoman
3 posts Page 1 of 1