Open Simple0815 opened 6 years ago
I checked this bug using the following steps:
I created a WordPress test site on my desktop locally using Lando.
I installed CF plugin on my test site.
Using the CF plugin, I created a blank form.
I added a Single Line Text field with Number name to my created blank form.
For Number field under HTML5 Type as number & Checked Enable input mask with 99999 Mask
Then I added a Dropdown Select field with toplevel name to my form.
In the toplevel field, I added 3 Options as for Option 1: Value=12; Label=.de, Option 2:Value=22; Label=.com, Option 3: Value=15; Label=.eu
Next, I added an HTML content field with Output name and in Content field added a magic tag %toplevel:label% & below that %toplevel% & checked Email Summary
I added a Submit button to my form.
I saved and loaded the created form.
In the Number field when I tried entering the character other than a number, it was not allowing me to enter and it was as per my expectation but since I had added a mask 99999, I should be able to enter only 5 numbers but I was able to enter more than that and it was not expected instead I expected after 5 numbers it should not allow me to enter more numbers in the field.
Then for toplevel Dropdown Select field, I selected option 2 i.e .com and I expected the value 22 to be displayed on my form and 22 under .com was displayed on the form
Then I Clicked on the Submit button and the form was submitted successfully.
When I checked my email, I received the submitted form information.
It was showing as follow: Number 12345 toplevel 22 Output .com 22
So information received in my email was what I expected to see i.e number entered in the Number field, the value of option selected in toplevel Dropdown select field & Output with .com & 22 since I used a magic tag in my HTML content field & checked Email Summary check box.
Javascript Errors :
PHP Errors:
When I checked the debug.log file of my WordPress test site I did not see any PHP errors.
So according to my testing & findings, I think this is a bug because in the Number field when I tried entering the character other than a number, it was not allowing me to enter and it was as per my expectation but since I had added a mask 99999, I should be able to enter only 5 numbers but I was able to enter more than that and it was not expected instead I expected after 5 numbers it should not allow me to enter more numbers in the field.
WordPress Version: 4.9.8 PHP Version: 7.1.22 MySQL Version: 5.7.23 Caldera Forms Version: 1.7.4 WP_DEBUG: 1
Hello @Simple0815 @swapnilmanjrekar ,
Point 1, Masks issue is duplicate of #1698 and needs to be worked on.
We couldn't reproduce the second point.
Is This A Feature Request?
No.
What Version Of Caldera Forms, WordPress and PHP Are You Using?
WordPress Version: 4.9.8PHP Version: 7.2.8MySQL Version: 5.7.23Caldera Forms Version: 1.7.2WP_DEBUG:
Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?
Yes.
What Is The Unexpected Behaviour?
Field Type „Single Text Line“ Mask = 99999 Expected: I can only type in 5 numbers. Behavior: I can type in everythig, jadskjhfk for example.
Input: Field Type = „Dropdown Box“ Slug = toplevel Option1: value: 12 / label: .de Option2: value: 22 / label: .com Option3: value: 15 / label: .eu
Output: Field Type „HTML“ %toplevel:label% %toplevel%
Expected output:
Option1: .de 12
Option2: .com 22
Option3: .eu 15
Real output: %toplevel:label% = nothing =>
Option1: 12
Option2: 22
Option3: 15
What PHP Errors Have You Logged While Reproducing This Bug?
None.
What JavaScript Errors Have You Seen While Reproducing This Bug?
No errors, no warnings