Copied to clipboard

Flag this post as spam?

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


  • stephen 84 posts 125 karma points
    Jul 23, 2020 @ 08:15
    stephen
    0

    FieldType on the Fly

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies