Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 583 posts 1407 karma points
    Feb 02, 2017 @ 19:18
    Sebastian Dammark
    0

    Custom form, but not fieldTypes ?

    I've created a folder matching my form guid, and copied all the default content into the folder.

    If I edit the Form.cshtml in my custom folder the markup changes like I would expect. But if I edit any of the cshtml-files in FieldTypes folder nothing happens.

    But if I then edit a cshtml-file in the default FieldTypes folder the changes happens on the form that has a custom set of templates.

    I'm fucking loosing it here. This is mental.

    Is this by design ?

  • Sebastian Dammark 583 posts 1407 karma points
    Feb 16, 2017 @ 15:14
    Sebastian Dammark
    2

    If you want to do custom markup for the FieldTypes, the templates must be in the GUID folder.

    Like this

    ~/Views/Partials/Forms/bd2e37c6-102d-4f56-aabb-8d31f10c6f12/FieldType.Textfield.cshtml
    

    Not like this:

    ~/Views/Partials/Forms/bd2e37c6-102d-4f56-aabb-8d31f10c6f12/FieldTypes/FieldType.Textfield.cshtml
    
Please Sign in or register to post replies

Write your reply to:

Draft