You would need to go to this column's settings, and change the column type to "String". Then, on the right, change the "Possible values for column" to "Define values list". Enter the values there and save this:
After you do that, go back into column settings, and change the column type back to "Float":
Then go to the "Editing" tab, where you'll select the "Single-value selectbox" as the editor type:
After you do this, when you're entering a new row, only the previously defined values will appear:
Hi,
I want to have a float column that users can edit/update. However, I want to predefine a specific range of possible values for that column.
I'm having trouble doing this. In the above link, I want users to be able to select values from 1.0, 1.2, 1.4, 1.6, ......, 7.6, 7.8, 8.0
Is this possible, and if so, how can I accomplish?
Thanks,
Joe
Hello Joe.
Thank you for your purchase.
You would need to go to this column's settings, and change the column type to "String". Then, on the right, change the "Possible values for column" to "Define values list". Enter the values there and save this:
After you do that, go back into column settings, and change the column type back to "Float":
Then go to the "Editing" tab, where you'll select the "Single-value selectbox" as the editor type:
After you do this, when you're entering a new row, only the previously defined values will appear:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables