Symantec IGA

Expand all | Collapse all

Verification screen javascript validation to set question value to empty

Jump to Best Answer
  • 1.  Verification screen javascript validation to set question value to empty

    Posted 02-28-2017 10:15 AM

    I have a verification screen which uses javascript for some validations. As a part of the logic, I have to set the value for logical attribute |Question1| and so on. I can successfully do that by using the following syntax:

    ScreenContext.setFieldValue("|Question"+counter+"|",questionVal);

    However, I want to empty the value for the question as well and following syntax does not work:

    ScreenContext.setFieldValue("|Question"+counter+"|","");

    Does anyone has some pointers on how to set this value back to empty? Using null instead of "" obviously fails. I am using CA IDM 12.6.8 CR2 version.



  • 2.  Re: Verification screen javascript validation to set question value to empty
    Best Answer

    Posted 03-01-2017 09:05 AM

    Snatarajan,

        This really has less to do with IdentityManager and more to do with java script setting an ldap attribute.

     

        That and the fact that the Question/value pairs are read/write/required and must have something written to the attribute.

     

        You cannot set the value of a read/write/required to "" or Null. Setting it to a known value is also dangerous.

    https://docops.ca.com/ca-identity-manager/12-6-8/EN/configuring/user-console-design/self-service-tasks/configure-the-forgotten-password-reset-and-forgotten-user-id-tasks/design-verification-screens/

        step 5:

    Modify the screen definition to include the Logical Attributes for each of the verification question and answer pairs that should appear on the screen. For example, add fields as follows:
    |VerifyQuestion1| - Read only.
    |VerifyAnswer1| - Write Required.

     

    idm/im_help/index.htm?toc.htm?FieldPropertiesonaProfileScreen.html

    Permission

    Determines the privilege level for the field.

    Note: If a field is required by the user store, choose a Required setting. Required fields are indicated by a yellow dot in the screen.

    Write Required

    Specifies that a field is required, but otherwise functions as the Write setting.

     

     

    I have struggled to find anything to help you with this search:

    https://www.google.com/?gws_rd=ssl#q=ldap+delete+value+of+required+field&*

     

    or this one:

     

    https://www.google.com/?gws_rd=ssl#q=javascript+set+value+of+write+required+field+to+blank&*

     

     

      I did find this one:

    http://www.ldapadmin.org/docs/scripts.html

        

      It mentions this:deleteValue(value) Deletes a string value from the attribute. 

      However that does require you to create and manage your own ldap session?

     

    So I do not have a real answer for you, just an understanding that the values have to have something, it cannot be null or blank, but setting them to a known value is very dangerous.

     

    Thanks,

    Bill Patton