I think it's quite simple what we are missing with Custom fields.
We need 2 things:
1. Add 2 Validation fields which would hold basic validation options
for Text field:
a. Validation drop-down with basic presets like Email address or
Regular Expression
b. Text field which will be shown only when Regular Expression is
selected and will hold that actual express which will be used for data
entry validation both Admin and Front end.
2. Admin Validation of Custom Field name - when user is defining new
custom field - most of them don't know that Spaces are NOT allowed.
This causing some pain down on the road. Not exactly about what Phil
meant, but kind of related
What you think?
DA.
On Oct 10, 5:29 am, "Phil --
wbtc.fr --" <
p...@wbtc.fr> wrote:
> alright for me, this would be a nice improvment to custom fields,
> which makes the versatility power of In Portal.
>
> 2010/10/10 Alexander Obuhovich <
aik.b...@gmail.com>:
>
>
>
> > I was talking only about custom field editing form in admin panel.
>
> > Since programming in templates is forbidden, since it mixed business logic
> > with display code.
>
> > On Sun, Oct 10, 2010 at 1:21 PM, Phil --
wbtc.fr -- <
p...@wbtc.fr> wrote:
>
> >> my idea is to have something completly open, where regular users could
> >> helpthemselves with easy expression given as example, while advanced
> >> users would be able to do a serious filtering. May we can think about
> >> this in admin panel, rather than in template?
>
> >> 2010/10/10 Alexander Obuhovich <
aik.b...@gmail.com>:
> >> > - entered value matches regular expression. If it doesn't match, then
> >> > doesn't allow to save custom field value and display an error
>
> >> > Could prove to regular users, who don't know PHP and use custom fields.
>
> >> > Maybe we could somehow allow users to modify direct PHP options of each
> >> > custom field in textarea like this:
> >> > required=1
> >> > formatter=kDateFormatter
> >> > regexp=/^.*$/
>
> >> > or maybe this is too advanced for average users.
>
> >> > On Sun, Oct 10, 2010 at 1:08 PM, Phil --
wbtc.fr -- <
p...@wbtc.fr>