Try something like this <field name="title" dtrequired="true" dtpattern="[a-zA-Z0-9]*" />
Dtpattern is just a javascript regular expression. The below field for example forces the user to enter a fully qualified url <field name="url" dtrequired="true" dtpattern="\://|javascript\:" /> Nico > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Ted Vinke > Verzonden: woensdag 1 september 2004 10:58 > Aan: [EMAIL PROTECTED] > Onderwerp: stripping dangerous characters in editwizard? > > > All, > > I'm using attachments for making file-uploads possible, but I > need someway to strip dangerous characters from the > title-field a.k.a. make sure the user only can enter title > using e.g. a..Z 0-9 en no other weird markup such as "$%^&*()#". > > Although above example just barely works, if a user enters a title > *starting* with a % the JSPX page is unable to show the title > - it just turns up empty then, probably because % is a > reserved character. > > Is it possible to have some kind of attribute in <field name="title" > dtrequired="true"/> or use another way to make sure only an > attachment with a 'safe' title can be saved via the editwizard? > > -- > Regards, > Met vriendelijke groet, > Ted Vinke > > First8 BV > Groenestraat 294 > 6531 JC Nijmegen > [EMAIL PROTECTED] >
