- Posts: 206
- Thank you received: 12
Custom Plugin Help
- Arbind Bhagat
- Topic Author
- Offline
- Elite Member
Less
More
8 months 3 weeks ago #164813
by Arbind Bhagat
The above code shows how to access the value of a field. How can we SET a value of a field?
Use Case: There is a custom field of type text. I want to set its value to "Member" if the user_id is a non-zero value.
Please help.
Custom Plugin Help was created by Arbind Bhagat
Code:
$data = EventbookingHelperRegistration::getRegistrantData($row);
echo $data['name_of_field']; // Will return value for a custom field with name = **name_of_field**
Use Case: There is a custom field of type text. I want to set its value to "Member" if the user_id is a non-zero value.
Please help.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
8 months 3 weeks ago #164815
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Plugin Help
Hello
The data for certain custom field is stored in #__eb_field_values. If you know how to write code, look at that table and you should be able to write the necessary code to insert data into that table
Tuan
The data for certain custom field is stored in #__eb_field_values. If you know how to write code, look at that table and you should be able to write the necessary code to insert data into that table
Tuan
Please Log in or Create an account to join the conversation.
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.