Kan ik de waardes die de gebruiker in de frontend kan aanpassen beperken ?
bijvoorbeeld hebben wij een kolom in onze tabel met een percentage van 0-100. ik wil dan dat de gebruiker een getal tussen de 0 en de 100 zou kunnen invoeren. en het overige zal worden genegeerd.
as the form is in dutch i doubt the fact that your support also is dutch so here in english ;-) Can I limit the values that the user can change in the frontend? for example we have a column in our table with a percentage from 0-100. I then want the user to be able to enter a number between 0 and 100. and other numbers are ignored.
Kan ik de waardes die de gebruiker in de frontend kan aanpassen beperken ?
bijvoorbeeld hebben wij een kolom in onze tabel met een percentage van 0-100. ik wil dan dat de gebruiker een getal tussen de 0 en de 100 zou kunnen invoeren. en het overige zal worden genegeerd.
as the form is in dutch i doubt the fact that your support also is dutch so here in english ;-)
Can I limit the values that the user can change in the frontend?
for example we have a column in our table with a percentage from 0-100. I then want the user to be able to enter a number between 0 and 100. and other numbers are ignored.
Hi, Jouke.
When it comes to setting up available values for Editing with our built-in options,
for String Columns,
you can go in a column's settings/Data tab,
and change from 'Read from table on page load' , to 'Define values list' or 'Use values from another wpDataTable ( foreign key)'
If you set to "define values list",
then you can set any values you need, and only those values will be available,
but for Editor Type, for this to work - you can set "Single value selectbox", or "multi value selectbox".
Then, if i try to edit existing value for that column,
it only allows me to pick from defined values.
-
Or if you make a Foreign Key relation with a column from another table;
in that case it will pull all the available values from that other table's column.
So if you set up only values you need there ( for example between 0 and 100)
- the user is limited to only a 'single value selectbox' Editor Type,
and they can only choose from values you set in that other table's column.
-
Let me know if that helps.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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