Skip to main content
Nintex Community Menu Bar
Solved

On ipad, use the numeric keyboard when filling an integer field on a smartform

  • April 12, 2017
  • 4 replies
  • 6 views
  • Translate

Forum|alt.badge.img+1

As the title suggests: how do i get the numeric keypad to show up in a K2 smartform when the datatype is integer. I found that in html it will need the type=number attribute however i need to know how to get this done from K2.

 

 

Best answer by StevenBrown

You can change the input type using javascript.  Using the DOM explorer, get the ID of the textbox.  Then in a hidden literal data label, make an expression with the javascript below replacing the element ID with the one you found.

 

<script type="text/javascript">
    document.getElementById('000000*personal details removed*0000_422e535a-13*personal details removed*d9-43*personal details removed*d34d50b3e7').type = 'number';
</script>

 

I think it would be better as a supported feature of smartforms.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+15

I don't recall this to be something that can be configured in K2. This is a pretty good idea though. You may want to log a feature request to K2 to get this implemented in future versions.

Translate

Forum|alt.badge.img+3
  • 13 replies
  • Answer
  • November 27, 2017

You can change the input type using javascript.  Using the DOM explorer, get the ID of the textbox.  Then in a hidden literal data label, make an expression with the javascript below replacing the element ID with the one you found.

 

<script type="text/javascript">
    document.getElementById('000000*personal details removed*0000_422e535a-13*personal details removed*d9-43*personal details removed*d34d50b3e7').type = 'number';
</script>

 

I think it would be better as a supported feature of smartforms.

Translate

  • 17 replies
  • November 30, 2017

Hi All,


 


The marked solution of javascript in a hidden literal control is the known workaround to achieve the desired result at the moment.


 


A feature request has been logged for future implementation of an out of the box method to mark the type property for controls.


 


Thanks,


Colin

Translate

Forum|alt.badge.img+8
  • Rookie
  • 80 replies
  • September 19, 2022

we have several text boxes we need this to apply to, is it possible to use a tooltip that is the same, and apply javascript to that tooltip?

rather than make individual expressions for multiple text boxes
@StevenBrown ?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings