- Posts: 210
- Thank you received: 3
How get event custom field name if submitting event in frontend
- Patrick
- Topic Author
- Offline
- Elite Member
Less
More
4 years 4 months ago #130227
by Patrick
How get event custom field name if submitting event in frontend was created by Patrick
Hello
In frontend submission I want to add a subtitle between event custom fields.
I use this override: /templates/mytemplate/html/com_eventbooking/event/simple.php
There I see this code:
after I want to add:
But this is not working.
What would be working code?
Thanks.
Patrick
In frontend submission I want to add a subtitle between event custom fields.
I use this override: /templates/mytemplate/html/com_eventbooking/event/simple.php
There I see this code:
Code:
<?php
if ($this->config->event_custom_field)
{
foreach ($this->form->getFieldset('basic') as $field)
{
after I want to add:
Code:
if($field->name == "field_name_mytestfield") {
echo "Hello test";
}
But this is not working.
What would be working code?
Thanks.
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 4 months ago #130228
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How get event custom field name if submitting event in frontend
Try to change if($field->name == "field_name_mytestfield")
to if($field->fieldname== "field_name_mytestfield")
To see if it solves the issue?
Tuan
to if($field->fieldname== "field_name_mytestfield")
To see if it solves the issue?
Tuan
The following user(s) said Thank You: Patrick
Please Log in or Create an account to join the conversation.
- Patrick
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 210
- Thank you received: 3
4 years 4 months ago #130229
by Patrick
Replied by Patrick on topic How get event custom field name if submitting event in frontend
Hi Tuan
Works great.
Thanks a lot.
Patrick
Works great.
Thanks a lot.
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 4 months ago #130243
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How get event custom field name if submitting event in frontend
Great. Thanks for confirming
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 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.