Posting data with Textarea, cf8 append an underscore "_" in the name

pandreat 1d ago

Good morning,

I’ve noticed this anomaly in the textarea fields. When data is posted, an underscore “_” character is added at the end of the textarea name.

Example: field name in the form is “text1” → field name in the data variables becomes “text1_”.

This means that:

  • I have to reference the field as {data:text1_}
  • To save the data in a database, I must write “text1_” in the Table Fields

Max, could you please check this bug?

Thank you

Max_admin 1d ago

Hi pandreat

No, this does not happen here, it must be something else on your form, test the form in the admin are and enable the debug then check the Data variables, what do you find ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pandreat 1d ago
Answer
1 Likes

Hi Max,

I found the problem: there is a space (blank) at the end of the Field Name value.

Sorry.

Max_admin 23h ago

Great, thanks for posting the solution.

I have added a fix to trim spaces at the start and end of fields names.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.