cancel
Showing results for 
Search instead for 
Did you mean: 

Required fields in wizard like navigation

former_member190457
Contributor
0 Kudos

Hi,

I am developing in FLEX 2 a wizard-like iview which collects data in several steps and eventually performs a single data service write.

Users must not be able to go to next step if all required fields are not filled in for current step.

Input field validation and flag 'required' are no use... they simply mark input fields red, but users can go on to the next step even with empty fields.

Is there a native way to do what I want?

Thanks and regards.

VT

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

The Explanation bellow if for VC 7.1, in VC 7.0 There is no support for hard validation.

That means that for now the only thing that you can do is to set the field as required and if you won't fill it, it will be shown by a red border but you will still be able to move to the next step.

In EHP1 we are going to add the feature of hard validation, and then you will be able to set that you can't continue until all the fields are filled.

For now the workaround you can use is by setting a guard condition on the transition between layers, the condition should be that all the fields are not NULL, for example:

NOT(ISNULL(#ID[ACA222]@STR1) || ISNULL(#ID[ACA222]@STR2))

And then the transition will only happen if none of the fields are empty.

Hope this will help

Regards,

Luba.

former_member190457
Contributor
0 Kudos

thanks, Luba

When is EHP1 expected to be released?

Former Member
0 Kudos

Hi,

EhP1 is supposed to be released around July.

Thanks,

Answers (2)

Answers (2)

former_member190457
Contributor
0 Kudos

one more question:

what if validation must happen on a table (i.e. : at least one entry must have been entered)?

Former Member
0 Kudos

Hello,

Unfortunately there is no way to do this.

Regards,

Luba.

Former Member
0 Kudos

Hi ,

Luba is correct there is no way to do this.

Regards,

Govindu

Former Member
0 Kudos

You can define a set of validation rules to check the validity of the values of a specific control,

and to respond in case of an invalid value.

In the Validation area of the Configure task panel, select the Required checkbox to specify that the control is mandatory and must have a value defined for it at runtime. You can also click the fx icon to open the Dynamic Expression Editor dialog box and define a condition that specifies when the control is mandatory. A control marked as Required shows a visual indication at runtime that it is mandatory.

In the Rules field, click the Browse button to open the Validation Rules dialog box. Define the Condition, Value, and Error Message for each validation rule that you create, and arrange the rules in the order that you want them to be performed.

From the Behavior dropdown list in the Configure task panel, select the way in which the control should report validation failures:

Normal: If the control validation fails, indicate this visually at runtime in a nonintrusive manner. For example, the control may be marked with a red border, or a tooltip may be displayed.

Severe: If the control validation fails, indicate this at runtime in a more intrusive manner. For example, an error message may be displayed in a modal dialog box, or the runtime user may be prevented from moving the focus to another control until the value is changed and the validation is successful.