On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I'm trying to change a field chunk because I need to add a class to an <input> tag. Where can I do this?
    I have tried to modify core/components/mxformbuilder/elements/chunks/field.text.chunk.tpl but nothing at all happens to the form. Nothing that I add changes anything. Are the chunks located in a different place?


    This question has been answered by charless. See the first response.

    • discuss.answer
      You should use the chunks in the Manager which are stored in the database, only if the database "default" value is not found will it fail back to the file system default chunk. Also, depending on what specifically your trying to do you can create a custom input type which is an alternative to using the chunk and will save time if you plan to have multiple options. The savings comes in by using the custom input type you will not have to modify the snippet call on the forms to change to the chunk with the modified code.

      Hope that helps.

        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.