Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
setting
required
workflow
Comment author was deleted
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;
}
is working on a reply...
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.
Continue discussion
Required Fieldtype Setting
Is there a way to set a custom field type's
setting
(and a workflowsetting
) asrequired
? 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 theworkflow
.Comment author was deleted
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;
}
is working on a reply...
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.