Hi All,
We are using File Attachment Component and have configured the maximum size of 1MB for an attachment.
The alert provided is OOTB when the size of the file exceeds 1 MB.
How can we restrict the Alert from coming and customize to our error Message.
This js is called ootb and we need to restrict it.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
@Sb2512 :
You can check in the below file and change the error message . This message is under i18n and it is language specific for different countries.
you can change this under en_Us and you can see the change in the alert message.
/libs/fd/xfaforms/clientlibs/I18N/en_US/I18N.js
"FileSizeGreater" : "Files {0} are greater than the expected size: {1}MB.",
{0} : will be replcaed by the name of the file which you uploaded.
{1} : will be replaced by the max file size limit you configured.
if it didnot work, check if you have done any overlay of these files under /apps/fd/xfaforms/clientlibs/I18N/. if yes, you need to make changes under /apps/.
which i have already tested and working fine. if there is any issue let me know.
Thanks ,
Siva
@Sb2512 :
You can check in the below file and change the error message . This message is under i18n and it is language specific for different countries.
you can change this under en_Us and you can see the change in the alert message.
/libs/fd/xfaforms/clientlibs/I18N/en_US/I18N.js
"FileSizeGreater" : "Files {0} are greater than the expected size: {1}MB.",
{0} : will be replcaed by the name of the file which you uploaded.
{1} : will be replaced by the max file size limit you configured.
if it didnot work, check if you have done any overlay of these files under /apps/fd/xfaforms/clientlibs/I18N/. if yes, you need to make changes under /apps/.
which i have already tested and working fine. if there is any issue let me know.
Thanks ,
Siva