Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Marking required fields with a symbol (Like * ) View modes: 
User avatar
Certified Developer 9
Certified Developer 9
r.zareianfard-gmail - 1/2/2014 9:58:40 AM
   
Marking required fields with a symbol (Like * )
I wanna mark required fields with an start without changing label ( as they may not be required in alternate forms)

do you know any solution?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/2/2014 11:20:11 AM
   
RE:Marking required fields with a symbol (Like * )
Set the Field caption value to "* Name". In your alternative form you can simply have "Name". But you need to ensure the main property is set to not required. You'd have to add validation at the main property level and modify it on the alternative form to not require it.

User avatar
Certified Developer 9
Certified Developer 9
r.zareianfard-gmail - 1/2/2014 11:40:15 AM
   
RE:Marking required fields with a symbol (Like * )
Thanks for your reply,
I knew this way but as I'm using a multicultural site in this way I will have lots of resources which is not suitable.I'm looking for automatic way to add this character to end of label if it's marked as required.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/2/2014 11:43:53 AM
   
RE:Marking required fields with a symbol (Like * )
CSS. Set the "content" before on the fields. Could also use jQuery although I'm unsure of a good way to implement that.

User avatar
Certified Developer 9
Certified Developer 9
r.zareianfard-gmail - 1/8/2014 5:44:54 PM
   
RE:Marking required fields with a symbol (Like * )
Thanks for your reply,
As I noticed there was a property named MarkRequiredFields in BasicForm and it can mark required fields in real world as you can see in webpart properties. I don't know why Kentico's team didn't enable this property by default.