Skip to main content


 

Symptoms



To replicate the issue:
>Design time]
1. have a img/file attachment and a save button
2. save button > on click > validate the attachment control as required
>Run time]
3. upload a huge file (10mb). While the file is uploading, click save. The form will pass validation.

Some findings on smartforms behavior:
1. While the file is in "uploading" state, it passes the "control contains a value" condition. (i.e. attachment control !=empty)
2. In a data label, assign an expression as the value of the attachment control.
Result: The value will be empty while the control is in "uploading" state. When the attachment has completed upload, the value will be reflected.
 

Diagnoses


N/A
 

Resolution

This is a known issue. Here is the workaround:

1. Add a data label to the form/view

2. Set an expression to the data label, and map the value of the attachment control.

3. Add a condition to check if the data label is populated. If the data label is populated, the attachment control should have finished uploading.




 

 

This will work if the image is a required field. what if it is optional?

 

from what I have seen the "changed" event on the control only triggers when the upload is complete?

 

really need an event to indicate upload has started or image control is interacted with.


Reply