Custom Plugin Help

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 months 12 hours ago #164813 by Arbind Bhagat
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**
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.

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

More
10 months 11 hours 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

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