Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

pzAttachFile shows superfluous screen ‘Attach content’ with msg

SA-47701

Summary



pzAttachFile shows superfluous screen ‘Attach content’ with message.

 In a screenflow with an input screen  which includes several input fields and also a button to add a file of a specific category, if the user omits to add a file a validation error is given by use of function “A [attachment category] is [attached/not attached] to the current case”.

The validation error is given in relation to another property on the screen.

Now the user wants to correct his omission and clicks ‘Add’ button. Next pzAttachFile displays a superfluous screen ‘Attach content’ with only a green Attach button.

Once clicked, the normal opening screen for pzAttachFile comes, with a warning hint to Choose files to proceed.

When the user selects a file this is accepted, but the category for this attachment is set to ‘file’ instead of automatically selecting the value as specified in the parameter for pzAttachFile.



Error Messages


Not Applicable


Steps to Reproduce

  1. Create a flow action within an assignment.
  2. Add a screen with a button to add a file.
  3. Add a validation to the flow_action based on the function “A [attachment category] is [attached/not attached] to the current case”.
  4. Run the assignment without adding a file and click submit. Validation error will be given on top of the screen.
  5. Click the button to add a file. Same text of the validation is now shown within popup screen ‘Attach content’ together with green Attach button.
  6. After clicking the normal functionality to select a file is shown.
  7. Once a file is selected to be attached, the screen shows the name of the selected file but without the correct category.


Root Cause



Validation message is not getting cleared, which is causing the issue.  

Resolution



Perform the following local-change:
 

Previous to the action with the Flow in Modal dialog and pzAttachFile, execute an activity Page-Clear-Messages.

By doing so, the validation message that interfered with pzAttachFile gets cleared and now pzAttachFile is always working fine as expected.

An alternate solution is to use the Attach Content Out-of-the-box (OOTB) Control.

 

 

Suggest Edit

Published July 23, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us