Alternate Form Order is Corrupted

Robert Tyska asked on February 26, 2019 17:30

I'm seeing what seems to be a corruption in the ordering of fields and categories in alternate forms on a number of custom page types. No matter how I move the fields around (eg top-down or bottom-up), the act of clicking those re-order buttons will knock other items that are not highlighted out of their current placement. I've tried deleting and recreating the forms, page refreshes, working in other browsers and the result is always the same.

Consider the following structure:

  • Link (Category)
  • ContentLinkText (Field)
  • ContentLinkUrl (Field)
  • Accessibility (Category)
  • ContentAriaLabel (Field)

If I try and move ContentLinkUrl above ContentLinkText, the end result will be something like this:

  • ContentLinkText (Field)
  • ContentLinkUrl (Field)
  • ContentAriaLabel (Field)
  • Link (Category)
  • Accessibility (Category)

It is actually happening on two separate sites and can be recreated by everyone on our team. Any idea what is happening here?

Recent Answers


Brenden Kehren answered on February 26, 2019 21:47

You most likely have something corrupt at the main page type level for fields. You may have to dig into the database to look for the structure and look for inconsistencies since it isn't blatently obvious within the Kentico UI. The table definitions for page types are in the cms_class table. You can look at the XML in the ClassFormDefinition field.

Then go to the CMS_AlternativeForm table and compare the XML in the FormDefinition field and see how it compares to the base. Order is defined in both tables by order of the nodes in the XML.

0 votesVote for this answer Mark as a Correct answer

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