- Posts: 8
- Thank you received: 0
how to access custom form fields
- lesliemathis
- Topic Author
- Offline
- New Member
-
Less
More
9 years 6 months ago - 9 years 6 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?
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: 9 years 6 months ago by lesliemathis.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 6 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
$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
-
Less
More
- Posts: 8
- Thank you received: 0
9 years 6 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. Dam, Dũng Nguyễn Việt
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.