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

Question

Question

Forms 10 iPad number field

asked on January 11, 2016

I was using Forms and Mobile 9.2.  I had a form constructed in Forms 9.2 that contained number fields.  When keying data into that form from an iPad the keyboard would automatically change to numeric when focus was on these fields (this saves a lot of key presses when filling in tables).

I have now converted that Laserfiche server and Forms to version 10.

Since then the iPad no longer automatically switches to the numeric keypad on number fields.  You have to manually select it every time.  Each time you complete a number field the keyboard switches back to alpha.

Could someone please confirm this for Forms/Mobile 9.2 and 10?

I no longer have 9.2 available. 

 

 

1 0

Replies

replied on January 12, 2016 Show version history

Hi Peter, this is because the input type for number field has been changed from number to text in order to support the new decimal and thousands delimiter features . In 9.2, the input type for number field is number so IPad will show numeric keyboard based on the input type.

Source code for number field in 9.2:

<input type="number" id="Field1" name="Field1" class="number cf-small" maxlength="4000" vo="e">

Source code for number field in 10.0:

<input type="text" id="Field1" name="Field1" aria-label="Field1" class="number cf-small user-success" maxlength="4000" vo="e" decimal-disabled="true" separator-disabled="false">

0 0
replied on January 13, 2016

Thanks Xiang.

This is going to create problems for me with my new customer.

Is there a code  I could use in Jscript to change the input type for this field to "number" either with or without the decimal point?

0 0
replied on January 13, 2016

You can use following JavaScript to change the type to number for those number fields doesn't enabled decimal

$(document).ready(function () {
 $("[decimal-disabled=true]").prop('type','number');
  $('.cf-table-add-row').click(function () {
  $("[decimal-disabled=true]").prop('type','number');
  });
  $('.cf-collection-append').click(function () {
  $("[decimal-disabled=true]").prop('type','number');
  });                            
});

 

0 0
replied on January 14, 2016

Thanks Xiang, this works very well for non decimal numbers on the iPad.

However, I have a number of fields that require a decimal point.  The 'thousands comma' is not required.  Can you please change the code to accommodate a decimal point?

Also, would I be able to use the 'type' property with a CSS class?

 

TimeSheet.PNG
TimeSheet.PNG (3.7 KB)
0 0
replied on January 19, 2016

Hi Peter, if decimal is required, then the field needs to be input instead of number, otherwise decimal can't work. That's why I only change the type from input to number for those fields which has decimal-disabled=true.

0 0
replied on February 7, 2016

Thanks Xiang.

The number field was working correctly on an iPad in version 9.2.  The new enhancement of allowing comma's and decimal points in version 10 has impacted the function of the iPad.

Every time a field with a decimal point is required, the user has to select the number pad first.  This extra step impacts performance.

Given the rapid expansion of Laserfiche into mobile devices I think Laserfiche should urgently review how the decimal field works.

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

Sign in to reply to this post.