Is it possible to add custom text "*" to required fields?

10 years 3 months ago #239128 by Kamen Rider
Hi guys,

I am using community builder 1.9 and I wish to add the text "*" after those required field's title. I have disabled required icons as I do not need them. I just need a simple "*" text after every required field title.

Can anyone advised me on where to change? I noticed that comprofiler.html.php is getting the registration fields as a tab from the class CBTabs. But I cannot find the file for CBTabs anywhere. Am I in the right direction?

Please Log in to join the conversation.

10 years 3 months ago #239134 by Kamen Rider
Anyone knows where to edit field's label to show * for required fields?

Please Log in to join the conversation.

10 years 3 months ago - 10 years 3 months ago #239137 by Kamen Rider
For those who wish to add a custom text for label titles I have found the fix. You will need to navigate to administrator/components/comprofiler/plugin.class.php. Search for "$translatedTitle" around line 852 and add the following.

if($field->required == 1) {
	$translatedTitle = $translatedTitle.' *';
}
The following user(s) said Thank You: plainhavoc

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.510 seconds

Facebook Twitter LinkedIn