• Check "CurrentDocument" properties on Form tab
    Question Dec 3, 2015
    Not sure why this isn't working this time because it did prior but I want to set visibility of some fields on the Form tab of a document. `` This should be returning true and display the field when I'm on this page `/My-Page/Tester` but it doesn't seem to. Assume this is ...

  • Forms - Visibility Macro
    Question Aug 4, 2016
    Hi, How to write a macro in "Visibility Condition" (under "Forms -> Field advances settings") to field to display only if current visitor country is USA. I tried using this macro "Current visitor's country is one of the following countries: USA" but not working. Here is my ...

  • Create custom macro method returning a custom class
    Question Aug 22, 2016
    Hello I've written a `CustomMacroMethod`, which is returning a class, looking like: public class ReturningObject { public string Name {get; set;} public int Id {get; set;} } In my `CustomMacroMethod`, I have the following code: [assembly: Regist...

  • Is it possible to use a K# macro in the WHERE condition of a Custom table data source?
    Question Mar 10, 2017
    I'm trying to create a page that uses a custom table data source and a repeater to show a list of dictionary terms from a custom table by first letter or numeral. The page has a wildcard URL that I'm using to pass in the variable I want to filter by. I have tried using the fol...

  • Field macro condition in Form Autoresponder
    Question Jun 27, 2016
    Can I use a macro to show or hide a section ( like a paragraph or a set of paragraphs ) in the body on a field condition? It's possible to show the values, but I tried to write a condition to show/hide source and it didn't work. Here's code I inserted in the editor's html so...

  • Email Macro & Transformation
    Question May 24, 2017
    Hello, I have a problem regarding emails interpreting special characters like '**<**' or '**"**' as **&lt** and **&quot**. Here's what I'm doing : I have a DataRowCollections that I'm passing to my MacroResolver. Within my email template, I'm applying a transformation (...

  • 8.1 macro issue
    Question Aug 29, 2014
    **** This seems to no longer work in 8.1 You have to add this ** ** to the web config for it to work in earlier versions. I get this error "**Security check of the expression 'Documents["/" + CurrentDocument.NodeAliasPath.Split("/")[1]].DocumentName |(user)administrator|(has...

  • MVC Macros on Page Type with long text
    Question Oct 15, 2019
    Hi, I am using kentico integrated with ASP.MVC. I currently have a page type which is composed of a long text field (rich text editor type. The idea is to use a macro expression, which can be binded from the server side. The idea would be to have something like that. **** ...

  • Content Filtering with Macro
    Question Jan 31, 2020
    I have a basic repeater and a page data source webpart that is using a page type. My pages and my pagetype items are matched by the same category. I am filtering the data source with the following macro. `` This works correctly if my page has a category however if there no...

  • ASCX/Macros in Form field default values
    Question Jan 29, 2015
    I have a site that was upgraded from a previous version of Kentico to 8.1. In the old site I had a bizform with a hidden field, and in the field definition in the bizform I had the default value set to a custom macro, like this: The custom macro works in other places, b...

  •   ... 31 32 33 34 35 36 37 38 39 40 ...