LISE frontend form (FormBuilder) with default values fails
Posted: Thu Feb 29, 2024 1:49 pm
I have discovered an interesting problem, that if you set a default value for a FormBuilder form, which sends form results to LISE, you get a Database error.
If you predefine the values itself directly in FormBuilder, e.g. in a Hidden Field, then the form works and submit to LISE without error.
I am trying to create a comment module where logged in users can add comments to another LISE module.
The form is inserted in the Detail Template for the LISE module. And besides the form failing if there is a default value, the detail template "disappears" on submit, even if the form is set to inline without a default value.
So I guess I have to go back to the drawing board and find a new way to solve the problem of being able to comment on a LISE post.
Code: Select all
{FormBuilder form='capture_comment' value_fld83=$item->title value_fld82=$item->serial}
LISE Database error: 0 - - Query: SELECT COUNT(alias) as alias FROM cms_module_lisecomments_item WHERE alias LIKE "000005%" LIMIT 1! @ /var/www/domain.com/public_html/app/lldb/modules/LISE/lib/class.LISEItemOperations.php (203)
I am trying to create a comment module where logged in users can add comments to another LISE module.
The form is inserted in the Detail Template for the LISE module. And besides the form failing if there is a default value, the detail template "disappears" on submit, even if the form is set to inline without a default value.
So I guess I have to go back to the drawing board and find a new way to solve the problem of being able to comment on a LISE post.