Copied to clipboard

Flag this post as spam?

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


  • stephen 81 posts 122 karma points
    Jul 23, 2020 @ 08:15
    stephen
    0

    How do I include a custom fieldtype by default in every form?

    I have a custom fieldtype but I dont want the user to have the option to add or exclude therefore I want to automatically include via the Form.cshtml to include the fieldtype.

    Any example of how this can be done?

    I've instantiated a new FieldType and created new FieldViewModel, FieldsetViewModel and FieldsetContainerViewModel so I have the field displayed in the form.

    The only thing is when the form is submitted it doesnt fire the ValidateField for the fieldtype.

Please Sign in or register to post replies

Write your reply to:

Draft