Kentico Macro "padleft" with Online Form

Vuthy Sok asked on June 12, 2017 04:25

Dear All,

For Kentico Online Form I try to use padleft join with ContactFormID to display in Subject field but I always go error with "Error while evaluating expression: |(padleft)3(with)0"

Here my Macro "{% ContactFormID|(padleft)5(with)0 %} Email confirmation"

Could you help me how to fix this issue?

Thanks

Vuthy

Correct Answer

Vuthy Sok answered on June 12, 2017 06:04

Thanks I found solution fix my issue

{% PadLeft(ContactFormID.ToString(),5,"0") #%} Email confirmation

0 votesVote for this answer Unmark Correct answer

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