Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number field value 0 is blank when editing entry #2215

Open
seankarol opened this issue Jan 9, 2018 · 1 comment
Open

Number field value 0 is blank when editing entry #2215

seankarol opened this issue Jan 9, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@seankarol
Copy link

Do You Need Immediate Help?

No

Is This A Feature Request?

No

What Version Of Caldera Forms, WordPress and PHP Are You Using?

WordPress Version: 4.9.1PHP Version: 7.1.12MySQL Version: 5.6.37Caldera Forms Version: 1.5.8.2WP_DEBUG:

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

Yes

What Is The Unexpected Behaviour?

What I did:
Create a form with a required number field. Submit an entry with a value 0 in the number field. View entry, edit entry, save.

What expected to happen:
When editing the entry the number field retains the 0 value.

What happened instead:
When editing the entry the number field value is blank, requiring a value to be entered before saving.

Number2 value is 0 when viewing an entry:
view-entry

Now Number2 value is blank when editing the same entry, requiring a number to be entered before saving:
edit-save-entry

What PHP Errors Have You Logged While Reproducing This Bug?

None

What JavaScript Errors Have You Seen While Reproducing This Bug?

None

@wouterke
Copy link

I have the same issue with toggle switch fields. See below editing an entry that had values for the 3 toggle switches. Seems to be a problem with numbers, since the "yes/no" toggle switch at the bottom is correctly prefilled.

image

My debug information:

WordPress Version: 4.9.4PHP Version: 7.2.2MySQL Version: 10.1.28Caldera Forms Version: 1.5.9.1WP_DEBUG:

@Shelob9 Shelob9 added the Bug label Feb 26, 2018
@Shelob9 Shelob9 added this to the 1.6.1 milestone Feb 26, 2018
@Shelob9 Shelob9 modified the milestones: 1.6.1, 1.6.2 Apr 5, 2018
@Shelob9 Shelob9 modified the milestones: 1.6.2, 1.7.0 Apr 18, 2018
@Shelob9 Shelob9 modified the milestones: 1.7.0, 1.7.1 May 9, 2018
@Shelob9 Shelob9 modified the milestones: 1.7.1, 1.7.2 Jun 4, 2018
@Shelob9 Shelob9 modified the milestones: 1.7.2, 1.7.3 Jun 25, 2018
@Shelob9 Shelob9 modified the milestones: 1.7.3, No Milestone Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants