164 Posts
redback
8 years ago
Topic

Hi Sebloders,

is there a core solution for the following requirement?

On the Form: Field Y ist not allowed to be empty, when Field X is filled.

Best Chris

Get a VIP membership
8 years ago
1
Level 1

Hi redback,

a possible solution (but not tested):

you need 3 fields :

  • Field X
  • Field Y1 with a condition "Is visible" & "is enabled" when Field X is empty
  • Field Y2 with a condition "Is visible" & "is enabled" when Field X is filled


Important : For  Field Y1 and Y2 set the same storage. Only one will be able depending on the Field X.


Then on Field Y1 and Y2

  • Field Y1 => Not mandatory
  • Field Y2 => Mandatory


Regards.

Lionel

164 Posts
redback
8 years ago
0
Level 2

Hi Lionel,

thanks for you suggestion and good explaining post. I will give feedback, when i tried.

Best Chris

310 Posts
ricco
8 years ago
0
Level 1

Hi,

Sorry Lionel, I don't think it will work.

@redback, why don't you make the Y field visible only when the X field is filled, like so:

Field X
Field Y with a condition "Is visible" & "is enabled" when Field X is filled

Best regards,
ricco

4229 Posts
Kadministrator
8 years ago
0
Level 1

Just for reference - I tested Lionel's solution and it works. Marking solved.

Get a Book for SEBLOD