Repeater throwing JS-Error

oase 31 Mar, 2025

deart team,

i have joomla 5.2.4 and chronoforms 8.0.43 and facing the following problem.

i have an form with an repeater and without any elements added by repeater everything is fine.

but when i add one element-block with the repeater-button i get following error message when submitting form:

Uncaught TypeError: this.validations[inputKey] is undefined

could you please take a look at the form at https://www.net4you.net/jubilaeumsfeier and tell me what could be the cause of the problem and how to solve?

cheers daniel

Max_admin 31 Mar, 2025

Hi Daniel

I need to test the form here, please create a copy, remove any private info then take a backup and attach it here and enable the "Private Attachment" setting as shown:

Repeater throwing JS-Error image 1

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oase 01 Apr, 2025

hi max, thanks.see file attached.best regards daniel

Private Attachment is only visible to Author & Moderators
Max_admin 02 Apr, 2025
Answer

Hi oase

There is a problem when the repeater has "Required" fields, I have changed some code to make this work with the next update

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oase 03 Apr, 2025

hi max,

great to hear. could you tell me when the next update is scheduled?because we need this form working to the start of next week.otherwise could you send me a pre-version which i can install or could you tell me where to fix this in current code?

best regards daniel

Max_admin 03 Apr, 2025
1 Likes

Hi oase

The new update is out, v8.0.44

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oase 04 Apr, 2025

hi max,

perfect thank you, works now as expected.but i have an follow up question.i want to control the repeater by changing the values of an input of type number.so far i have created an js which is just klicking the buttons which are normally present and just hiding them via css.but when i will submit the form i get 2 "field is missing" errors at the top of the form.please see attached the exported form.maybe you could tell me what i did wrong?best regards daniel

Private Attachment is only visible to Author & Moderators
oase 04 Apr, 2025

one additional note, this 2 "field is missing" errors also appear when i remove the whole script and change the repeater just with the form buttons

Max_admin 04 Apr, 2025
1 Likes

Hi oase

I think this is because of your fields names format, you are using this format:

something[n]another

but the correct formats are:

something[n]

or

something[n][another]

Please try that and let me know

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oase 08 Apr, 2025
1 Likes

hi max, thanks. this solved the problem for me. best regards daniel

You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger