- Posts: 6
- Thank you received: 0
Echo certain fields in other forms
- charle
- Topic Author
- Offline
- New Member
-
Less
More
13 years 6 months ago #17854
by charle
Echo certain fields in other forms was created by charle
I am trying to echo Event Location, Event Time, Location Address, Location City, Location State, Location Zip into the register>default.php file. Right now i have the following:
<input type="hidden" name="event_venue_c" id="event_venue_c" value="<?php echo $this->location->name ; ?>" />
<input type="hidden" name="event_time1_c" id="event_time1_c" value="<?php echo $this->lists.' '.$this->lists; ?> " />
<input type="hidden" name="event_address_c" id="event_address_c" value="<?php echo $this->location->address ; ?>" />
<input type="hidden" name="event_city_c" id="event_city_c" value="<?php echo $this->location->city ; ?>" />
<input type="hidden" name="event_state_c" id="event_state_c" value="<?php echo $this->location->state ; ?>" />
<input type="hidden" name="event_zip_c" id="event_zip_c" value="<?php echo $this->location->zip ; ?>" />
it is not working.
<input type="hidden" name="event_venue_c" id="event_venue_c" value="<?php echo $this->location->name ; ?>" />
<input type="hidden" name="event_time1_c" id="event_time1_c" value="<?php echo $this->lists.' '.$this->lists; ?> " />
<input type="hidden" name="event_address_c" id="event_address_c" value="<?php echo $this->location->address ; ?>" />
<input type="hidden" name="event_city_c" id="event_city_c" value="<?php echo $this->location->city ; ?>" />
<input type="hidden" name="event_state_c" id="event_state_c" value="<?php echo $this->location->state ; ?>" />
<input type="hidden" name="event_zip_c" id="event_zip_c" value="<?php echo $this->location->zip ; ?>" />
it is not working.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 6 months ago #17870
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Echo certain fields in other forms
Hi
It doesn't work because the code is incorrect. Could you please explain the purpose of doing that ?
Tuan
It doesn't work because the code is incorrect. Could you please explain the purpose of doing that ?
Tuan
Please Log in or Create an account to join the conversation.
- charle
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
13 years 6 months ago #17874
by charle
Replied by charle on topic Re: Echo certain fields in other forms
Hi Tuan,
I am trying to pass this information on using a CURL to SugarCRM. The fields mentioned above need to have the code in the value to pass them on. Does that make sense?
I am trying to pass this information on using a CURL to SugarCRM. The fields mentioned above need to have the code in the value to pass them on. Does that make sense?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 6 months ago #17876
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Echo certain fields in other forms
Yes, I understand . However :
1. That's not the correct place to add the fields. Maybe you will have to add it to components/com_eventsbooking/views/confirmation/tmpl folder (there are several files in that folder).
2. You will need to know PHP code, read data from database and echo the value you want. If you simply echo $this->location->city for example, it will not work because you haven't read data from database yet, haven't assigned the value ....
In this case, I would suggest you to find a developer to help you. It seems you don't have enough coding skill for this task.
Tuan
1. That's not the correct place to add the fields. Maybe you will have to add it to components/com_eventsbooking/views/confirmation/tmpl folder (there are several files in that folder).
2. You will need to know PHP code, read data from database and echo the value you want. If you simply echo $this->location->city for example, it will not work because you haven't read data from database yet, haven't assigned the value ....
In this case, I would suggest you to find a developer to help you. It seems you don't have enough coding skill for this task.
Tuan
Please Log in or Create an account to join the conversation.
- charle
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
13 years 6 months ago #17885
by charle
Replied by charle on topic Re: Echo certain fields in other forms
that was not very helpful. I already am passing information to sugar such as Registrants name, phone, email, etc as well as Event date. I just need help with the other fields.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 5 months ago #17901
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Echo certain fields in other forms
Hi
Where do you add code to insert data into SugarCRM ?
Tuan
Where do you add code to insert data into SugarCRM ?
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.