Copied to clipboard

Flag this post as spam?

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

  • lucuma 261 posts 563 karma points
    Feb 26, 2014 @ 20:07

    Required Fieldtype Setting

    Is there a way to set a custom field type's setting (and a workflow setting) as required? I am building a bunch of custom fields that all have a setting that is going to be required to be set as they'll be used in the workflow.

  • Comment author was deleted

    Feb 27, 2014 @ 11:26

    yeah you can do that in the validaiton of the workflow type :) check the sourcecode for the existing onces


    public override List<Exception> ValidateSettings()


                List<Exception> l = new List<Exception>();

                if (string.IsNullOrEmpty(Email))

                    l.Add(new Exception("'Email' setting has not been set"));


                if (string.IsNullOrEmpty(Message))

                    l.Add(new Exception("'Message' setting has not been set'"));



                return l;


Please Sign in or register to post replies

Write your reply to: