You are viewing limited content. For full access, please sign in.

Question

Question

Checkbox still prompts for requirement but is already filled.

asked on May 22, 2017

I have a user with a form that will occasionally prompt for a  required checkbox field to be filled in on submission. The problem is there is already a value in the field. Now the catch here is that this only happens when the checkbox is filled using a javascript that fills it out based on another selection. It doesn't seem to happen consistently as I could not recreate the issue. 

 

Has anyone else ran into this? if so any suggestions on a work around?

0 0

Answer

SELECTED ANSWER
replied on May 23, 2017

I could reproduce the issue with this script and Forms 10.0.0.1154; the issue does not exist in Forms 10.1 though.

To make it work in 10.0, you can update the script to trigger a change event after updating value like this:

document.getElementById('Field249-9').checked = true;
$('#Field249-9').change();

 

0 0

Replies

replied on May 22, 2017

Hi Shane,

Which version of Forms are you using? What is the browser that customer used?

And since you said this only happens when field is filled by script, can you post your custom script for checking the checkbox?

0 0
replied on May 23, 2017

The customer is using google chrome on android tablets.  Version of Forms is 10.0.0.1154

Here is the code for the Checkbox autofill

$(document).ready (function () {
  function replicate() {
    var selection = $('select[id^=Field129]').val();
    if (selection == 'PICC INSERT/ ULTRSND') {
      document.getElementById('Field249-9').checked = true;
      document.getElementById('Field249-10').checked = false;
      document.getElementById('Field246-0').checked = true;
      $('select[id^=Field324]').val('PICC');
      
    } 
    if (selection == 'Midline Insert/ ULTRSND') {
      document.getElementById('Field249-10').checked = true;
      document.getElementById('Field249-9').checked = false;
      document.getElementById('Field246-0').checked = false;
      $('select[id^=Field324]').val('Midline');
      }
 
  }
  $('.priserv').change(replicate);

 

0 0
SELECTED ANSWER
replied on May 23, 2017

I could reproduce the issue with this script and Forms 10.0.0.1154; the issue does not exist in Forms 10.1 though.

To make it work in 10.0, you can update the script to trigger a change event after updating value like this:

document.getElementById('Field249-9').checked = true;
$('#Field249-9').change();

 

0 0
replied on June 5, 2017 Show version history

I have a required check box field in LF Forms 10.2 that when a user selects a choice then submits, it prompts the user to fill in ALL the check boxes.  Am I missing a setting somewhere to prevent this?

6-5-17 req checkbox.PNG
0 0
replied on June 5, 2017

If you are using 10.2.0.774, there was a bug that required checkbox field on IE11 compatibility view requires all options to be selected.

Applying https://support.laserfiche.com/kb/1013834/list-of-changes-for-laserfiche-forms-10-2-update-1- should fix the issue.

1 0
replied on June 6, 2017

Thanks, I'll look at updating to 10.2.1 update. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.