How do I mark a field in the Web Console as required? (NETIQKB54649)

  • 7754649
  • 02-Feb-2007
  • 05-Jan-2012

Environment

Directory & Resource Administrator 8.x

Situation

How do I mark a field in the Web Console as required?

Can I enforce the use of an attribute in the Web Console?

Resolution

In this example, we want to make the attribute "Last Name" be required in the web console:

Copy this file

...\Inetpub\wwwroot\DRAWeb\WebConsole\BuiltIn\AccountManagement\Users\UserCreate\TaskMain.asp

to the folder

...\Inetpub\wwwroot\DRAWeb\WebConsole\Custom\AccountManagement\Users\UserCreate

Change the Read Only attribute from the copied file.

NOTE:  Do not modify the file in the BuiltIn folder.  This allows you to restore the functionality of the web console should an incorrect change be made in the copied file.

Find this section in the copied file:


set FormCtrl           = TaskForm.AddCtrl("text", "txtLastName")
        FormCtrl.Label         = Task.GetMsg("LABEL_LAST_NAME")
        FormCtrl.Help          = Task.GetMsg("HELP_LAST_NAME")
        FormCtrl.Enabled       = true
        FormCtrl.Visible       = True
        FormCtrl.Required      = False
        FormCtrl.Maxlength     = Application("Maxlength_sn")
        FormCtrl.DataField     = "sn"
        set FormCtrl           = nothing

Change the value of FormCtrl.Required to = True.  Save the change.

This will cause the field to be required on the web page itself, and will mark it as such (with a red asterisk).

Make this change on all DRA servers hosting the web component.



Additional Information

Formerly known as NETIQKB54649