TOPIC:

Pre form validation issues 9 years 5 months ago #72529

  • Topic Author
  • henkiem
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 24
  • Thanks: 0
Hi there
Before my form loads, I want to validate through a MySQL procedure (since the validations are complex and will be re-used in several forms).
The problem is that I get a "Error loading module Commands out of sync" error on the code below.
This is the code in the Before Form custom code:
// load the standard form creation utilities
$this->execPieceByName('ff_InitLib');

// load old record if any
global $database;
global $record;
global $tableName;
global $reqName;
global $userId;
global $errorMsg;

$reqName = 'IEC101926742';
$userId = JFactory::getUser()->get('id',-1);

$database->setQuery("call MAYAN_REQUEST_VALID(\"$reqName\", \"$userId\")");
$rows = $database->loadObjectList();
if (count($rows) > 0) {
   $record = $rows[0];
   $errorMsg = $record->msg;
   return $errorMsg;
}

Please Log in or Create an account to join the conversation.

Last edit: Post by henkiem.

Re: Pre form validation issues 9 years 5 months ago #72530

  • Topic Author
  • henkiem
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 24
  • Thanks: 0
Please ignore this - sorry - I opened it under the wrong category.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.041 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!