VCP-CMA 2024 Question 248
Select 4You are tasked with creating a custom form in VMware Aria Automation to enhance the user experience during a catalog request. The form needs to include a conditional field that only becomes visible when a specific checkbox is selected. Additionally, you must ensure that a dynamically generated value is displayed in a separate field based on the user's input. Which steps should you take to achieve this functionality?
- A
Add a checkbox field and configure a visibility condition for the dependent field.
- B
Use a text field for the dynamically generated value and configure an external source binding.
- C
Enable the 'Mandatory' property on the dynamically generated field to ensure it is always visible.
- D
Add a script action to populate the dynamically generated field based on user input.
- E
Use the 'Form Rules' tab to configure the dependency between the checkbox and the conditional field.
Show answer and explanation
Correct answers: A, B, D, E
Explanation
To create a custom form with conditional visibility and dynamically generated values, you must define dependencies between fields using visibility conditions and the 'Form Rules' tab. For dynamic values, external source bindings and script actions are used. The 'Mandatory' property does not contribute to visibility control or dynamic behavior, so it is not necessary in this scenario.
- A. Correct.
Correct: Adding a checkbox field and configuring a visibility condition allows you to control when a dependent field is displayed based on the state of the checkbox.
- B. Correct.
Correct: Using a text field with an external source binding ensures the dynamically generated value is retrieved and displayed based on user input.
- C. Incorrect.
Incorrect: Enabling the 'Mandatory' property ensures the field is required but does not control its visibility.
- D. Correct.
Correct: A script action can be used to dynamically retrieve or calculate the value for the field based on user input.
- E. Correct.
Correct: The 'Form Rules' tab is used to define dependencies and conditions between fields, ensuring the conditional field behaves as expected.