Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Balbooa Forms PHP Scripts at different stages of the form

4 weeks 18 hours ago #1

  • BiLe's Avatar
  • BiLe
  • Posts: 270
Hello,

currently you only support to include PHP Code after Form Submission.

It would be nice if we could include custom PHP script files at different stages of the form:
  • PHP Form Prepare
  • PHP Form Display
  • PHP Form Process
  • PHP Form After Submission

This would make it possible to auto populate fields, run custom validations and transfer data to different tables. A short description on how to address the fields or throw errors would be useful. This would help in creating custom login/register form or forms for updating existing data. Maybe you have other plans for forms and make it even easier using just the admin backend. But in the meantime, this would be a cool update.

4 weeks 17 hours ago #2

  • BiLe's Avatar
  • BiLe
  • Posts: 270
A "Hidden Field" would be great, when we can auto populate fields. Then we could use conditions that will show or hide fields based on the hidden field.

4 weeks 16 hours ago #3

  • BiLe's Avatar
  • BiLe
  • Posts: 270
Text Area with Editor (e.g. TinyMCE Joomla default) for frontend.

4 weeks 7 hours ago #4

  • BiLe's Avatar
  • BiLe
  • Posts: 270
And my thoughts about error handling with custom PHP:

throw new Exception("$error_top");
throw new Exception("$error_field_1");
throw new Exception("$error_field_2");

function to either throw error with a field or on top of the form (scroll form to first error or top of form).

If we could address HTML field, we could auto populate upon form process.

Same with dropdown, where we could auto populate an array:
Powered by Kunena Forum