Require Response

If you select true in the Require Response list box (the default is false) then:
  • The macro runtime displays the text string (required) to the right of the input field, to indicate to the end user that input is required for this input field.
  • The macro runtime disables the OK button of the prompt window until the input field of the prompt window contains text.
    • The input field can contain text either because you have specified a Default Response or because the user has typed text into the input field.
    • When OK is enabled, the end user can click either OK or Cancel, as usual:
      • Clicking OK causes the macro to process the Prompt action and continue processing the macro.
      • Clicking Cancel terminates the macro playback.
    • When OK is not enabled, the end user can click Cancel.
      • Clicking Cancel terminates the macro playback.
Thus, setting Require Response to true has the effects of reminding the end user (by displaying (required) to the right of the input field) that a response is required before proceeding, and of requiring the end user to enter text in the input field before clicking OK (by disabling OK until the input field contains text). However, if the Prompt action contains a Default Response, then OK is enabled and the default response is displayed in the input field.
If you select false in the Require Response list box then:
  • The macro runtime does not display the text string (required)to the right of the input field.
  • The macro runtime enables the OK button on the prompt window immediately as soon as the prompt window is displayed, whether or not the input field contains text.
    • The user can click OK or Cancel, as usual:
      • Clicking OK causes the macro runtime to process the Prompt action and then to continue processing the macro. In the Prompt action, if the input field is blank, the macro runtime does not send an input key sequence to session window.
      • Clicking Cancel terminates the macro playback.
Thus, setting Require Response to false has the effect of allowing the user to continue processing the macro by clicking OK, even if the input field of the prompt is blank.

If the promptall attribute of the <HAScript> element (or of the <actions> element) is set to true, and you have several prompt actions in the macro (or in the macro screen) with Require Response set to true, then at the start of macro playback (or at the start of the playback of the macro screen), when the macro runtime displays all the prompt input fields in a single prompt window, the macro runtime does not enable the OK button in the prompt window until all required input fields contain text (see The promptall attributes ).

Note: If a prompt value is based on a global variable set by an extract, and the promptall attribute is set to true, the extract action is not run before the prompts values are retrieved. Because of this, the global variable used by the prompt does not contain a value. If you use global variables with extracts and prompts, you should set the promptall attribute to false. Macros recorded in HCL ZIETrans default to promptall=true.