How to disable the colons from the BizForm labels

Customer care manager

Juraj Ondrus asked on June 17, 2010 09:00

How to disable the colons from the BizForm labels

Correct Answer

Juraj Ondrus answered on June 17, 2010 09:00

If you use BizForm as an inline control, you can adjust its code-behind: ~\CMSModules\Bizforms\InlineControls\BizFormControl.ascx.cs by amending the SetupControl() method. You will set the BizForm property UseColonBehindLabel to false like this (be aware of this change in case of future upgrade):

this.Bizform1.UseColonBehindLabel = false;

On the other hand, in case you use it as a webpart, there is an easy solution for that. Please locate to webpart properties (on the Design tab) where you can see the 'Use colon (:) in labels' property. You need to set it to false.

In ASPX templates you can add property to you your BizForm web part <uc1:BizForm ... UseColonBehindLabel="false" />

-ov-
0 votesVote for this answer Unmark Correct answer

Recent Answers


Justin Jason answered on June 26, 2014 08:02

I am wondering what the approach is for removing colons from the labels on: 1) My Profile web part 2) Custom Registration Form web part

My solution has always been to manually create the labels in the markup of the Alternative Forms for these, but they aren't tied to the input field then. I would love to find a way to do it programmatically.

In fact, I wonder why it's the default to include a colon when that could easily be added through the label text field at the user's discretion (from the Fields area of the admin). At the least there could be a setting on the web part configuration settings level. It seems like a pain to waste development time tinkering with cloning web parts just to control the use of a colon.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on June 30, 2014 03:12

Hi,

This is very, very old post. the setting for using colons for online forms was already added to the web part configuration. It is called "Use colons": yes/no.

However, this could be done for every form control so, I have forwarded this idea to our product managers.

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.