Hello,
I'm trying to configure Dynamic Registration (v. 03.03.50 running on DNN 04.08.01), and have some problems with validation.
I could setup my form to use some cascading dropdown (Country, linked to Region, linked to Province, linked to City), and this is working perfectly. However, I now want to validate user input: for example I want him not to be able to change Country (the site will begin to do ecommerce within Italy only, then wil later expand to other countries), and then want him to choose values for other combos and fields.
1) The "Read-Only field" checkbox is always unavailable (disabled); I managed to change the value on the database, but if in edit mode I see this field marked as read-only, users can still change its value.
Wanted resut: I want to make my "country" field read-only, a disabled combobox with a default value of "Italy"; I also want to validate it to allow only "Italy" as a choice, for now.
I flagged this field as required, put a regular expression ("Italy") and the same default value, but the form allows any value (any country selection) as valid: how to do this?
2) Validating other combos (region, province and city): I just want the user to select an option, so I disallow a value of "0" (which is the first value in the combo). I configured a regular expression like this: ^[^0].* and this apprently works: correct?
3) I would want to separate the registration process in phases: in first registration I want the user to compile only a few fields (say name surname and email), then I want him to be asked to compile other fields when required, e.g. when accessing some function on the site. Would it be possible to configure Dynamic Registration this way?
thank you,
al.
|