Hello Marton,
Re: I understand SQL
That is great!
Re: you recommend the existing columns
By 'existing' field I don't mean: fields in the form that belong to the form and are important.
I mean: An additional form field of the special SQL type, especially for your complicated calculation.
This field can also be invisible in the form.
Re: won't be able to satisfy what I want to do
- Why shouldn't a SQL type field be sufficient?
You can make the SQL statement as complicated as you like.
- Have you tried it yet?
- If so, where are the limitations you are talking about?
Re: How can I create such a column where I can enter sql statements with few constraints?
One option for developers is to create a custom plugin.
The documentation describes how to create a 'Visforms Custom Plugin'.
Custom plugin creation:
docs.joomla-4.visforms.vi-solutions.de/d...-plugin-development/
Custom plugin event system:
docs.joomla-4.visforms.vi-solutions.de/d...-plugin-development/
There is a complete custom plugin with all events and help functions as a template that comes with the installation of Visforms:
docs.joomla-4.visforms.vi-solutions.de/d...-plugin-development/
The developer can then decide for himself what else should happen.
In your case, when saving the form data (form submit or data edit), your SQL statement would run in your PHP code in the plugin.
You have access to all form data and the entire database.
You can manually insert any additional field into the form's data table (or an entire table of your own) without hindering the operation of Visforms.
Creating a custom plugin requires some experience in PHP development under Joomla.
If you need help developing the plugin, we will be happy to support you - including with the complete implementation.
Please understand that we have to charge this effort at our current hourly rate and for at least 1 hour.
Kind regards, Ingmar