how to access custom form fields

  • lesliemathis
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #70546 by lesliemathis
how to access custom form fields was created by lesliemathis
I need to customize my thank you pages and email confirmations to only print form fields that have been filled out.
I can custom-print the standard form fields here:
com_jdonation/view/common/donation_detail.php (email_donation_detail.php)
with
if($row->comments > " ") {
echo $row->comments;
}

but I cannot print out the custom variables. For example: $row->notification will not print anything.

Can you tell me what syntax to use to print custom form fields?
Last edit: 8 years 5 months ago by lesliemathis.

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

More
8 years 5 months ago #70566 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic how to access custom form fields
Please try :

$fields = $form->getFields();

echo $fields->value;

That should work

Tuan

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

  • lesliemathis
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #70593 by lesliemathis
Replied by lesliemathis on topic how to access custom form fields
That works - thank you very much!!

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

Moderators: Mr. DamDũng Nguyễn Việt