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
Hi,
From looking at http://www.nibble.be/?p=154 I've been able to create a number of field types.
I was wondering is it possible to set the regex fields programatically and if so how?
I've tried using the setter in bool SupportRegex but I know I'm not doing it right.
public override bool SupportsRegex { get { return true; }
set{ Values = Regex r
} }
Thanks
Paul
Comment author was deleted
Nope you can't set that up in the custom fieldtype
Added it as a feature request: http://issues.umbraco.org/issue/CON-297
So there is no way to access the regex field progamatically you can just show or hide it from a user
Yup fieldtype only controls if it supports regex (so if that option is available)
So if supports regex is set to true I cannot put a regular expression into the additional setting via code and have to do it via contour
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Adding a default regex in a custom field?
Hi,
From looking at http://www.nibble.be/?p=154 I've been able to create a number of field types.
I was wondering is it possible to set the regex fields programatically and if so how?
I've tried using the setter in bool SupportRegex but I know I'm not doing it right.
public override bool SupportsRegex
{
get
{
return true;
}
set{ Values = Regex r
}
}
Thanks
Paul
Comment author was deleted
Nope you can't set that up in the custom fieldtype
Comment author was deleted
Added it as a feature request: http://issues.umbraco.org/issue/CON-297
So there is no way to access the regex field progamatically you can just show or hide it from a user
Comment author was deleted
Yup fieldtype only controls if it supports regex (so if that option is available)
So if supports regex is set to true I cannot put a regular expression into the additional setting via code and have to do it via contour
is working on a reply...