• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PHP in detailsLayout module

PHP in detailsLayout module 8 years 5 months ago #36020

Hi;

I created a hidden field in my form which is name "masraf". This field is empty after form submiison. I have php code which is sum of field from another table. I am using RSForm! Pro Module List. I have good html code Details Layout in module.

My php code is:
$db = JFactory::getDbo();
$user = JFactory::getUser();
$masraf = $session->get('masraf');
$masraf = setQuery("SELECT SUM(`FieldValue`) FROM #__rsform_submission_values LEFT JOIN #__rsform_submissions ON #__rsform_submission_values.SubmissionId = #__rsform_submissions.SubmissionId WHERE #__rsform_submissions.`UserId`='". $user->get('id')."' AND #__rsform_submission_values.`FormId` = 14 AND #__rsform_submission_values.`FieldName` = 'masraf'");
return $masraf;

But my php oce result does not shown in my hidden field value module details layout.

Please help!

thank you
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!