Question
Atos Syntel
IN
Last activity: 17 Feb 2021 10:12 EST
How to have asterisk to a control's label when Required field is set to never
Need something like below, Required dropdown's value in the control will be set to never.
Version: 7.3
***Edited by Moderator: Pallavi to update platform capability tags***
-
Likes (1)
Reda Sabassi -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Atos Syntel
IN
seems like you can write html directly in the Label name field and you can use JSP tags to display it conditionally.
<pega:choose>
<pega:when name="WhenRule" >
Label_Name<font size="3" color="#e67300">*</font>
</pega:when >
<pega:otherwise>
Label_Name
</pega:otherwise>
</pega:choose>
got the tags from below link
https://community.pega.com/sites/default/files/help_v719/jsp/when/jspwhen.htm
Thanks Everyone.
Pegasystems Inc.
FR
Hello,
This is just an icon you can add anyway.
Atos Syntel
IN
I don't think you understood the question correctly or i didn't explain it very well.
Above is a dropdown control, the label of that control will have an asterisk when the Required dropdown in that control properties is set to always or a condition that evaluates to true, My requirement is set never for the Required dropdown and still have an asterisk(in orange color) next to the label.
Also there is no option to add icons in that control.
Pegasystems Inc.
FR
why don't you add an extra column with the icon representing the asterisk then? I did that in the past it was working quite well.
Atos Syntel
IN
This is one approach, but will cost lot of time doing changes to the existing UI.
Virtusa
IN
Hi,
Please add the asterisk(in orange color) in Label Only like attached screenshot.
Thanks...!
Atos Syntel
IN
Thanks Venkat
-
Izhar Jumadi
Tata Consultancy Services Limited
GB
I have tried this.. But the image is not rendering..
Pegasystems Inc.
US
Actually, the use of asterisk is to indicate that it is a required field. If you don't want it to be required, why do you need an asterisk in the first place? Please explain the reason to do this.
Atos Syntel
IN
Validation is going to happen on the server side, but we need to indicate to the user which fields are mandatory, we don't want them find it when they hit the submit button.
-
Kevin Zheng Mary Carbonara Brendan Horan Ankuj Jhalani Rahul Sanghi
Accepted Solution
Atos Syntel
IN
seems like you can write html directly in the Label name field and you can use JSP tags to display it conditionally.
<pega:choose>
<pega:when name="WhenRule" >
Label_Name<font size="3" color="#e67300">*</font>
</pega:when >
<pega:otherwise>
Label_Name
</pega:otherwise>
</pega:choose>
got the tags from below link
https://community.pega.com/sites/default/files/help_v719/jsp/when/jspwhen.htm
Thanks Everyone.
-
Mounika Chenna