Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

FORMS-14814 multifileinput#234

Open
lovelymandal16 wants to merge 3 commits intomainfrom
FORMS-14814-multifileinput
Open

FORMS-14814 multifileinput#234
lovelymandal16 wants to merge 3 commits intomainfrom
FORMS-14814-multifileinput

Conversation

@lovelymandal16
Copy link

@lovelymandal16 lovelymandal16 commented Feb 13, 2025

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
URL for testing : https://author-p133911-e1313554.adobeaemcloud.com/content/forms/af/setup3-lovely.html
Fix #FORMS-14814

Test URLs:

@aem-code-sync
Copy link

aem-code-sync bot commented Feb 13, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync
Copy link

aem-code-sync bot commented Feb 13, 2025

Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@ravise5
Copy link

ravise5 commented Feb 26, 2025

@lovelymandal16 can you add the url for testing, need to verify few things.

const maxItems = (parseInt(input.dataset.maxItems, 10) || -1);
const fileSize = `${input.dataset.maxFileSize || '2MB'}`;
let constraint = '';
let constraintErrorMessage = '';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lovelymandal16 why do we need 2 variables constraint and constraintErrorMessage ? both seem to be storing the constraint here.

if (constraint.length) {
const finalMessage = wrapper.dataset[constraint]
const finalMessage = wrapper.dataset[constraintErrorMessage]
|| errorMessage
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we replace this with ${constraint}ErrorMessge ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants