192
Views
7
Comments
Solved
Mobile Dropdown - how to specify a number range?
Question

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

2026-02-26 06-29-24
Rahul
 
MVP
Solution

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.

Regards
Rahul

2021-04-07 10-08-47
Zhou Shuai

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?

2026-02-26 06-29-24
Rahul
 
MVP

Yes you can do that as well but for it also you need to create a logic, first checking siteproperty and split by ','.

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Fadi,

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

2022-12-24 05-04-39
Fadi Zananiri

Hi Benjith,

Thank you for the reply, I would like to showcase 1, 2, 3, 4, ...... 100 as dropdown option values. Thank you

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Fadi,

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!


Kind regards,

Benjith Sam

MobileLabCustomDD.oml
2022-12-24 05-04-39
Fadi Zananiri

Hi Benjith,

Thank you for the reply, I would like to showcase 1, 2, 3, 4, ...... 100 as dropdown option values. Thank you



2026-02-26 06-29-24
Rahul
 
MVP
Solution

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.

Regards
Rahul

2021-04-07 10-08-47
Zhou Shuai

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?

2026-02-26 06-29-24
Rahul
 
MVP

Yes you can do that as well but for it also you need to create a logic, first checking siteproperty and split by ','.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.