ServiceNow Workspace: pass dropdown value to form

NeetaC
Tera Contributor

I am working on a ServiceNow Workspace and need guidance on passing values from a dropdown to a form.

Requirement:

  • I have created a custom table application that stores application details.

  • In Workspace, I added a Dropdown component that displays the list of applications from application.

  • I also created a button in the Workspace.

Expected behaviour:

  1. User selects an application from the dropdown.

  2. User clicks the button.

  3. A Vault Onboarding Request form custom table that i have created Vault onboarding Request should open.

  4. The form fields should be auto-populated based on the selected application (for example: application name, owner, environment, etc.).

  5. User reviews the data and submits the request.

What I need help with:

  • How to open a  from Vault Onboarding Request form Workspace on button click

  • How to pass the selected dropdown value to the form

  • How to auto-populate the fields in the form using that selected application data

  • Whether this should be handled using UI Actions, Workspace Action Handlers, Client Scripts, Data Resources, or URL parameters

If anyone has implemented a similar use case in Workspace, sample steps or best practices would be greatly appreciated.

2 REPLIES 2

Dibyaratnam
Kilo Patron

what is the use of the button , is it just to confirm the selected application from dropdown and then only the form should be loaded.

Yes, and dropdown selected application should be populate on opened form, form also have the application field