Custom Fields
Custom fields are a feature in SudoWorkspace that allow you to add fields based on your needs. With this ability, SudoWorkspace can easily fit your company’s requirements.
Follow the steps to add a new custom field.
- Navigate to Setup → Custom Fields
- Click New Custom Field
- Choose the section where this field will belong. Only the options listed in the dropdown are available. (If you select Leads , this field will also appear as an option when converting a lead to a client, allowing fields to be merged in the client record depending on other custom or existing database fields.)
- Name – Enter a descriptive name for the field.
- Choose the field’s type.
- The Options field is for select and checkbox fields only . If your custom field is a select or checkbox , separate options with commas (e.g., orange, juice, banana).
- Order (default: 0) – Use this to set the display order when multiple fields apply to the same area.
- Disabled – When enabled, the field will be hidden throughout the application. Existing values will be retained but not shown; deleting the field will permanently remove all associated values.
- Required – Specify whether this field is mandatory when editing records in the selected area.
- Restrict visibility for administrators only – If enabled, only administrators can view, add, or edit this custom field.
- Visibility – Control where this field appears (for example: tables, PDFs, customer portal). Visibility options vary by field type. Note: If you enable visibility on the customer portal for a field not tied to the customer profile, it will also appear in list tables. Fields marked to ‘show on table’ are displayed before option data; if a table has no options, those fields will be added at the end.
- Grid – Bootstrap column width (for example: col-md-6)
Click Save and check the field where you have added.
Custom fields in multiple languages
This is the main example for the German language; you can apply to same steps for other languages where you want the custom fields to be translated.
In application/language/german create a file custom_lang.php
Navigate to Setup->Custom fields . In the table, there is a SLUG column; copy this slug.
In the file custom_lang.php you created in the language folder, you are trying to translate the custom field, add the following code:
<?php
$lang['cf_translate_ADD_SLUG_HERE'] = 'My Custom Field in German';
<?php
$lang['cf_translate_ADD_SLUG_HERE'] = 'My Custom Field in German';
<?php
$lang['cf_translate_ADD_SLUG_HERE'] = 'My Custom Field in German';
Eq. if your custom field slug is named leads_regions , the lang key should look like this:
$lang['cf_translate_leads_regions'] = 'My Custom Field in German';
$lang['cf_translate_leads_regions'] = 'My Custom Field in German';
$lang['cf_translate_leads_regions'] = 'My Custom Field in German';