Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Fields...Remove Trailing ":" from Labels in Custom Forms. View modes: 
User avatar
Member
Member
Armysniper89 - 10/24/2010 11:15:34 AM
   
Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
How can I do this? I saw an article here that it is an option in the BizForm web part but I am using a custom form for registration.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/25/2010 6:09:47 AM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Hello,

Yes, this can be set in the properties of the webpart. Please check the attached image.

User image

Best regards,
Boris Pocatko

User avatar
Member
Member
Armysniper89 - 10/25/2010 11:30:28 AM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
But this is NOT a BizForm but a CustomRegistration web part. So how would I do that there? :) Sorry for the confusion of my last post.

I am using checkboxes in a custom registration but I have them left oriented (checkbox, label...versus label checkbox which it tends to prefer)...the problem is that it puts a : after the label which I do not want. I want to remove it from all or just these checkboxes.

User avatar
Member
Member
Armysniper89 - 10/26/2010 12:24:49 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Anyone?

User avatar
Member
Member
Mark - 10/27/2010 1:14:25 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
How did you reverse the position of the labels and the textboxes? Did you create a custom form with Visual Studio (aspx) of using the CMS tool?

Have you looked at the code behind .cs file for the custom registration form? I'd look there first.

Mark

User avatar
Member
Member
Mark - 10/27/2010 1:20:44 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
I created a custom registration form by cloning the Membership->Registration web part. It did not have the UseColonBehindLabel property. If you cloned a BizForm to create the custom registration (or another form) then that is why the colon is there.

The Kentico developer guide has a section about creating a custom registration form that I used.

Mark

User avatar
Member
Member
Armysniper89 - 10/27/2010 1:25:49 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
I am not using that, I am using the Custom Registration Form web part. It allows you to use the Alternative Form ability to define fields which is better for us since our company likes to add stuff to it all the time. I created fields in the User System table that are boolean that represent the checkboxes. I created an Alternative Form, added the fields and they are backwards to most checkboxes, Label first and then the checkbox. It automatically adds : after ALL fields as do most layouts done in the System Tables.

User avatar
Member
Member
Mark - 10/27/2010 2:52:48 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
So in Site Manager, you went to Development-> Document Types and created it from a document type there? That is the only area I have seen Alternative Forms available.

Is that correct?

Mark

User avatar
Member
Member
Mark - 10/27/2010 2:57:44 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
I found it now! There are several available I wasn't aware of.

BizForms
Custom Tables
Document Types
System Tables

Now I get it. I'll have to try it out.

Mark

User avatar
Member
Member
Armysniper89 - 10/27/2010 3:00:23 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Actually it is SiteManager -> Development -> System Tables -> Users -> Alternative Forms

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/29/2010 2:07:40 AM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Hi all,

You can set up not to use colons for BasicForm object which is the parent object for all forms. You can configure it in the code behind of web part you use for example.

Please clone the web part if it is a standard one. For example if you use the Custom registration form web part you can add this line to SetupControl() method:
formUser.BasicForm.UseColonBehindLabel = false;

where formUser is the ID of form control.

Best regards,
Helena Grulichova

User avatar
Member
Member
gmac - 7/16/2013 10:19:53 AM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
I am using kentico v7 and I can not get this to work on my site. I have a cloned custom registration form and want to remove the colons from the labels of each field. BasicForm is not an attribute of my form or any of the controls.

help!

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 7/16/2013 2:32:25 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Hello,

as you are using Kentico 7, please create a new thread under appropriate version.
The solution could be completeli different due to many API changes from v5 to v6 and finally to v7.

Thank you for understanding, it has a reason why every version has it's own section.

Best Regards,
Martin Danko

User avatar
Member
Member
Mark - 11/3/2010 1:19:28 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Did Helena's suggestion work for you?

Mark

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/3/2010 2:50:43 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
Hi Mark,

I tested it on my site and it worked. Do you have any problems with that?

Best regards,
Helena Grulichova

User avatar
Member
Member
Armysniper89 - 11/8/2010 4:33:54 PM
   
RE:Custom Fields...Remove Trailing ":" from Labels in Custom Forms.
To avoid having another custom web part to keep track of, I decided to just simply add the text manually versus using the label. But I did test it and found it works.