Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Password when user choose a value in a drop down menu

Avatar

Former Community Member

Hi,

I've got an issue with a form.

I've got a drop down menu.

When users choose "A", some fields are hidden others readonly

When users choose "B" all field sare visible but readonly.

I'd like to add a field password which allowed authorised people to change all form's fields.

Thanks a lot

Nath

1 Accepted Solution

Avatar

Correct answer by
Level 7

In your password field you will need to put something like (in Formcalc):

If ($ == "whateveryourpasswordis") then

     otherfield1.access = "open"

     otherfield2.access = "open" //etc that will make them user enabled

endif

View solution in original post

3 Replies

Avatar

Correct answer by
Level 7

In your password field you will need to put something like (in Formcalc):

If ($ == "whateveryourpasswordis") then

     otherfield1.access = "open"

     otherfield2.access = "open" //etc that will make them user enabled

endif

Avatar

Former Community Member

You can add this command before the test in whyisthisme's post. It will put up a dialog and allow the user to enter the password beofr ewyou check it. The true value indicates that this is a password field and * chars will be used on the display. You woudl then test the var myPswd in the if statement.

var  myPswd = app.response("Enter your password", "This is a title", "Dafault Value", true, "Label before input:")

Paul