Joomla 6 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5 and 6!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

"$" in User Input truncates PDF output.

More
4 hours 35 minutes ago - 4 hours 34 minutes ago #12109 by gggraphics
"$" in User Input truncates PDF output. was created by gggraphics
Visforms Version 4.4.3
PHP 8.1.34
Joomla 4.4.10 

I have an Art Show Entry form which allows Users to enter a price for their works. If It set it to Type "Number", it works perfectly, ie "1234".
In testing, some users complained that they couldn't understand why it wouldn't accept the price if they entered "$1234". It's not used for calculation, so I changed the Type to "Text".
The result is sent back to the User as plain text and a PDF document (The PDF function is brilliant, thank you!!)
The text result is correct, but the PDF truncates the first two digits. For example:

User entry: $1234
Email text result: $1234
PDF result: 34
The placeholder in the PDF layout is ${entry1-price}

I've also tested this with other text fields - the problem seems to be "$" followed by a number. For instance:
Input "$Name"  returns "$Name"
Input "$4Name" returns "Name"
Input "Nam$45e" returns "Name"
"This is a $45Test$55Again" returns "This is a TestAgain"

They are all stored correctly in the database and in the result email. It's only the PDF copy that is missing characters.

I wonder if the output is seeing the '$" as an Escape character - an instruction rather than a letter?
Not a big deal, but it means that if the User has "$" as part of the title, the results are unpredictable.
Cheers

GG


 
Last edit: 4 hours 34 minutes ago by gggraphics. Reason: Forgot to check the notify button!

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum