HTML5 autofocus attribute

Cristian Horta's Avatar

Cristian Horta

22 Apr, 2015 06:26 PM


When adding the "autofocus" attribute to an input field inside a velocity formant, I get the error below, when I click on the page associated with that format:

"An error occurred: Could not transform with Script format "_internal/4.5.0/formats/page-structure/search": Error on line 13: Attribute name "autofocus" associated with an element type "input" must be followed by the ' = ' character.

You may choose to retry the operation. If the problem persists, please contact a system administrator.

The error has been logged to the system console."

Looks like it wants me to use the traditional attribute markup (attribute="value"), but "autofocus" works as is. Anyway to get around this?


  1. 1 Posted by Bradley Wagner on 22 Apr, 2015 06:31 PM

    Bradley Wagner's Avatar

    Thanks Christian. We currently rely on the XML-variant of HTML5 which mandates that attributes look like well-formed XML attributes. autofocus="autofocus" would be fine here.

  2. 2 Posted by Cristian Horta on 22 Apr, 2015 06:45 PM

    Cristian Horta's Avatar

    Thanks for the quick reply, Bradley. That worked perfectly!

  3. 3 Posted by Bradley Wagner on 22 Apr, 2015 06:47 PM

    Bradley Wagner's Avatar

    You're welcome and glad that worked for you. Have a great day.

  4. Bradley Wagner closed this discussion on 22 Apr, 2015 06:47 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM