Hi, what's the best way to specify a number range (i.e. 1-100) for a user to select from in a dropdown on mobile? Thanks
Hi Fadi,
You have many ways to do. like-
1. You can create Static Entity for it and use for DropDown.
2. You can create one action and use if condition and use List append once 1-100 number bind in a list and use this action for dropdown .
3. Best Way - Create one Excel insert data 1-100 Put it in Resource and Use ExcelToRecordList and same Record List you can use for DropDown .
Like Below Image-
Hope this will help you.
RegardsRahul
For the point 3, compare to create a siteproperty as the value is 1,2,3......,100, then split with delimiter ',' to get the list, which one is better?
Yes you can do that as well but for it also you need to create a logic, first checking siteproperty and split by ','.
Sorry! I'm not able to understand the use-case clearly.
Is it that you want to showcase 1, 2, 3, 4, ...... 100 as dropdown option values?
Is it that you want to showcase 1 - 10, 11 - 20, 21 - 30.... 91 - 100 as dropdown option values?
Or is it that you are asking for a better/suitable widget for this use-case?
Or is it that you are looking for a logic to auto generate Dropdown option values on the basis of number range runtime value ?
Could you please let us know, what exactly the challenge you are facing in terms of implementation and UX vice?
Kind regards,
Benjith Sam
Hi Benjith,
Thank you for the reply, I would like to showcase 1, 2, 3, 4, ...... 100 as dropdown option values. Thank you
On implementing the same use-case, I have observed that the Dropdown selection list height is covering the entire screen.
- Either you can restrict the Dropdown selection list height using CSS or some JS code
- Or you can customize the dropdown widget as I did in the attached sample .oml file
Also, you can generate the 1-100 Dropdown option using custom logic or by referring the dynamic entity records (Bootstrap the Dropdown option values i.e. 1-100 as suggested by Rahul)
See this Sample App | Custom Dropdown Widget
Hope this helps you!