Issue Details#8 Frontend validation bug

  • Priority: Urgent
  • Number: 8
  • Type: Bug
  • Status: Resolved
  • Age: 2653 Days
  • Assignee: botsko

Description

Line 329 of formbulder.php need to be changed from:

$field['required'] = $field['required'] == 'true' ? true : false;

to

$field['required'] = $field['required'] == 'checked' ? true : false;

in order for the frontend validation to work.

History

alconebay Gravatar

alconebay August 2, 2020 3:42 AM

Issue reported.

alconebay Gravatar

alconebay August 2, 2020 4:47 AM

Lines 435, 460, 485, 529, and 579 need to be changed to:

$field['required'] = $field['required'] == 'checked' ? ' required' : false;
alconebay Gravatar

alconebay August 2, 2020 4:51 AM

The select box validation does not work because the first select option is automatically selected on form load. I added this above line 593... in case it looks usable to you:

if($field['required']){$html .= '<option value="">Selection Required</label>';}
botsko Gravatar

botsko November 22, 2020 4:25 PM

  • Assignee → botsko
  • Status → Assigned
  • Priority → Urgent
  • botsko started watching this issue.
botsko Gravatar

botsko December 15, 2020 6:36 PM

Issue 7 has been identified as a duplicate of this bug.

Snowy Evening Gravatar

Snowy Evening December 15, 2020 7:56 PM

  • Status → Resolved
github Gravatar

Snowy EveningDecember 15, 2020 7:56 PM

Required ternary tweak by Brandon, bug 8:resolved

Update Issue

Add your comments to this issue!

Creating a free account will let you immediately report issues on this project, as well as comment on existing issues, save your filters, and more!!