I have created a column "Create Date" where i set the predefined value as %CURRENT_DATE% so that the creation date of that record is registered withouautomatically. To prevent users from changing it i disabled editing for this column. However, when a user fills the form and try to save, there is an error message "THERE WAS AN ERROR TRYING TO INSERT A NEW ROW" but when i enable editing, it works.
If you add a predefined value, you can't disable editing.
What you need to do here is to hide that column from being edited in front-end with some custom CSS. If you can provide me the URL to that table, I can take a look and see which CSS you need to use.
Also, please note that predefined values will disappear if they hit "Apply and add new", so you may want to hide that field using CSS as explained on this page
I have created a column "Create Date" where i set the predefined value as %CURRENT_DATE% so that the creation date of that record is registered withouautomatically. To prevent users from changing it i disabled editing for this column. However, when a user fills the form and try to save, there is an error message "THERE WAS AN ERROR TRYING TO INSERT A NEW ROW" but when i enable editing, it works.
Hello Khalid
Thank you for your purchase.
If you add a predefined value, you can't disable editing.
What you need to do here is to hide that column from being edited in front-end with some custom CSS. If you can provide me the URL to that table, I can take a look and see which CSS you need to use.
Also, please note that predefined values will disappear if they hit "Apply and add new", so you may want to hide that field using CSS as explained on this page
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