Project

General

Profile

Actions

User story #3954

open

In technique, allow to have field whose value if optionnal if another field has some value

User story #3954: In technique, allow to have field whose value if optionnal if another field has some value

Added by François ARMAND about 12 years ago. Updated about 1 year ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Config management
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We want to be able to say that a field is optionnal if and only if an other field has some value.

In particular, we want to be able to say "that field MUST BE defined if the checkbox is checked".

I think that a new constraint like:

    <MAYBEEMPTY_IF field="full.qualified.name.of.field.to.test">Some[text]with?regexallowed</MAYBEEMPTY_IF>

could run.

It shoudl be sufficient, in that first user story, to not provide <maybe empty if not> (the negation of the proposed constraint) because Java regex, the one that we are going to use, are pcre-compatible and allow negation (with somthing like "not matching WORD" with the rexep: ((?!WORD).)* , see http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word )

Updated by François ARMAND about 12 years ago Actions #1

  • Description updated (diff)

Updated by Nicolas PERRON about 12 years ago Actions #2

  • Target version changed from 2.8.0~beta1 to Ideas (not version specific)

This is not planned to be in Rudder 2.8

Updated by Benoît PECCATTE over 10 years ago Actions #3

  • Status changed from 8 to New

Updated by François ARMAND almost 8 years ago Actions #4

  • Assignee deleted (François ARMAND)

Updated by François ARMAND about 1 year ago Actions #5

  • Priority changed from 3 to N/A
Actions

Also available in: PDF Atom