cancel
Showing results for 
Search instead for 
Did you mean: 

Visible When property in CDC

GabrielGomezPad
Participant
0 Kudos

Hello Experts,

We are currently in the process of setting up our CDC as IdP in integration with a Fiori Cloud Portal (SP). We are working with the default RegistrationLogin screen set. During the registration flow I would like to display a combobox depending on a condition and for that I am trying to use the “Visible When” property.

The condition: is “locale” datafield empty? Expected behavior: If yes, then the user gets a combobox for selecting a language, if the field is already filled then nothing is offered.

The documentation is basically offering one example profile.firstName !==''and with that condition it works good, but something like profile.locale ==='' is not working. After trying many possibilities of the kind:

profile.locale ==''

profile.locale !==''

I come up with the conclusion that is probably not working because the field has absolutely no value for a fresh registered user… and then the field is undefined? then I (useless) try with:

profile.locale ==='undefined'

profile.locale ==undefined

!profile.locale

Then I just give up with profile.locale and try the field “isRegistered” like:

isRegistered == false

Also not working. Each test requires inviting a new test-member and follow the mail -> login-screen flow. Since this takes time it might be quicker if I place here the question:

What would be the best syntax to write into the field “Visible When” in order to make work the expected behavior?

I place here some other (for me not so relevant questions) in case anybody can answer and perhaps help other members of the community:

  • how come it doesn´t work with “isRegistered”? is it possible to use this field even though it is not located under “data” object?
  • Usual syntax of the type !data.field would be valid in this field? In general, does it work with traditional javascript expressions?
  • Is there an easy way to debug the result of these fields in screens?

Thanks, in advance,

Gabriel

Accepted Solutions (0)

Answers (0)