Accessing FormMode from macro

benyamin jain asked on January 17, 2017 11:23

HI

How it is possible to access form mode of cmsform on live site using macro?

Correct Answer

Brenden Kehren answered on January 17, 2017 15:04

I believe you have to create your own custom macro for that one. Form mode is set by whether or not the form has any data supplied to it. So better off setting a value for an ID, removing it or something on that line.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Ilesh Mistry answered on January 17, 2017 12:09 (last edited on January 17, 2017 12:09)

Hi Benyamin

What version of Kentico are you running and also what do you mean by Form mode? And where do you want to use this macro?

Thanks Ilesh

0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on January 17, 2017 15:18

For the Custom Macro, you add the value to a hidden field and then use it on the front end.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on January 17, 2017 19:42 (last edited on December 10, 2019 02:30)

you can check available properties in the macro console: System > Macros > Console: Expand (CMS.DocumentEngine.CMSDataContext)

Whatever macro related to FORM is under {% SiteObjects.Forms |(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.