Skip to main content

NIM

Step 12: Design a confirmation screen (tutorial)

In this step, we'll work on our second form, which is essentially a confirmation screen for the user create portion of this app. This will involve an advanced item that we haven't seen yet: the Name-Value List.

  1. Go back to the Forms tab and load the name_generation form.

    2023-10-17_12-32-49.jpg
  2. Drag and drop a Static Text item beneath the separator. Set its properties as follows:

    2023-10-17_12-34-13.jpg
    • margin trbl: __2_

    • styles: font-weight:bold;

    • text: Name Generation

  3. Drag and drop another Static Text item beneath the previous one, and set its properties as follows:

    2023-10-17_13-24-05.jpg
    • margin trbl: __3_

    • text: The account will be created with the following names

  4. Drag and drop a Name-Value List beneath the static text item, and set its properties as follows:

    2023-10-18_14-06-24.jpg
    • column width: 8

    • item name columns: 3

    • item name font weight: bold

    • item value columns: 5

    • item value font weight: light

  5. Now, we have to set the list's items property, which is the tricky part.

    1. Click the Value cell of the items property. The Configure Name-Value List dialog box is shown. By default, the list is populated with a single item (example_item_value).

      2023-10-17_13-48-31.jpg
    2. Click the default list item's Name cell and rename it to Username.

      2023-10-18_13-57-42.jpg
    3. Change its Value Type to javascript.

      2023-10-18_13-58-24.jpg
    4. Click the list item's Value cell. The JavaScript Evaluation dialog box is shown.

      2023-10-17_13-56-05.jpg
    5. Enter return data['ng_sAMAccountName']. This fetches the value of the name generator's ng_sAMAccountName output field.

      2023-10-17_13-56-54.jpg
    6. Click Save.

      2023-10-18_13-59-26.jpg
    7. Click Add to add a second list item, and repeat the above process to set its properties as follows:

      2023-10-18_14-02-30.jpg
      • Name: userPrincipalName

      • Value Type: javascript

      • Value: return data['ng_userPrincipalName']

    8. Finally, click Add to add a third and final list item. Set its properties as follows:

      2023-10-18_14-04-02.jpg
      • Name: cn

      • Value Type: javascript

      • Value: return data['ng_cn']

    9. Click Save.

      2023-10-18_14-10-11.jpg

      The name-value list now previews the generated names that this app will use to create an AD account.

  6. We'll click Save to save our progress so far.

Next: Step 13: User create action