Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Using macro in BizForm View modes: 
User avatar
Member
Member
jack81 - 1/20/2014 5:55:15 PM
   
Using macro in BizForm
I have created a variable that I would like to save in BizFom field. I created variable in static text like this:
{% x=2; y=3; s=x+y; s %}

In BizForm field I have used following as default vale:
<%s%>

I am trying to save this variable in Bizform and use it with query string. How can I declare variable and use it in forms and query string.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 1/21/2014 1:22:48 AM
   
RE:Using macro in BizForm
Hi Jack,

Thank you for your message.

Can you please provide us with a little more background on what are you trying to achive?

Do you want to set the macro as a default value for some field in bizForm? If so this can be done easily with a custom macro -> http://devnet.kentico.com/docs/devguide/types_of_macros.htm#custom

In the macro you would do the logic and on the bizForm you would use {#MacroName#}.

Kind regards,
Richard Sustek