Remove Guest from the event registration form's Name field
The event registration form's Name field will always be automatically completed with either the logged-in user's name or, if the user is not logged in, with the default value Guest. Should you require to remove Guest and simply leave the field blank for non-logged-in users, here's what you need to do:
The text that gets added automatically as the field's default value is actually being pulled from the language files, namely:
\administrator\language\en-GB\en-GB.com_rseventspro.ini
and is being provided by the following line:
COM_RSEVENTSPRO_GLOBAL_GUEST="Guest"
There are 2 ways in which you can remove the Name field's default value:
Delete the text
Under the path specified above, simply delete the text associated with the COM_RSEVENTSPRO_GLOBAL_GUEST constant.
Note that this solution is NOT recommended, as any changes made directly to the language files will be lost upon future updates.
This solution would be suitable for non-standard language files (for example French, Dutch, etc.), as these files will not be overwritten when updating the component.
Create a Language Override
Joomla! offers the possibility to create language overrides. Using this feature you can set up Joomla! to use a different, custom version of a constant's value normally specified in a language file, without actually replacing the original's value.
To achieve this, please take the following steps:
- Head to Extensions >> Language Manager >> Overrides
- click on New
- add COM_RSEVENTSPRO_GLOBAL_GUEST in the Language Constant field
- leave the Text field empty
- click on Save or Save & Close
14 persons found this article helpful.
You Should Also Read
How to display the event name in the RSForm!Pro event registration form |