Siebel – Showing red asterisk on a conditionally required field
by Madhvi AroraIn Siebel vanilla Application, we see a red asterisk ( * ) in case the field is Required. However, this asterisk is not shown in case the field is made required conditionally through customization.
We had a similar requirement, to show the red asterisk against a field in the form applet, which was required conditionally. I have already discussed how to make the field read only conditionally in my previous post.
We implemented this by setting the caption of our field on the applet as:
img src=”images/icon_req.gif” alt=”Code Validated” border=”0″ space=”0″ hspace=”0″>Account”
The caption at the Control level in the applet accepts HTML coding for custom display. This worked. Now, we could see a red asterisk ( * ) against our field which was previously implemented conditionally required by using the BC field level User Property “Required”.
Related posts:
- Siebel – Make a field Required, conditionally There was a requirement in our project to make Account...
- Siebel – HTML Code displayed in Error Message There was a requirement in our project to make Account...
- Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...
- Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
- Siebel – Custom Applet Title There is an Applet title on the top of the...
- Query on the Long Column or Field A typical problem in any EAI project. Others too!! One...
- Siebel – Autosave Opportunity data – The concept Requirement: System should have capability to automatically save opportunity(RFPs) data...
okay. This will show the asterisk if the field is required.
but Madhvi, will this work in case we want to show the asterisk conditionally too??
I mean, supposing the Account should be required, and should show the red asterisk only if the LOGIN_ID does not have the responsibility of Administrator.
Now, I would like to show the Account Id field to be mandatory (with the red asterisk) only for the Login Ids with responsibility other than Administrator. If the account has Administrator responsibility, this field should not be shown as mandatory.
How do you suggest we handle this?
[...] Making a field conditionally required Showing * on a conditionally required field [...]
Sorry for the late response. Showing * does not work conditionally.But as far as for your problem, I can suggest the use of “Toggle Applets”. Showing * to certain users with administrator responsibilty can be done in following manner:
1. Create a new calculated field say “Responsibility” in BC say “Quote” BC and calculated value as “GetProfileAttr(“Primary Responsibility Name”)”.This way we will be able to capture the responsibility of the user.
2.Create a copy say “Quote Entry Applet copy”of the original applet say “Quote Entry Applet”.But in this applet use caption with * for the “Account” field.
3.Now in “Quote Entry Applet”,in Applet Toggle, give the name of copied applet i.e “Quote Entry Applet copy”,field “Reponsibility” in Auto Toggle Field and Siebel Administrator in Auto Toggle Value.Here “Siebel Adminstrator” is the responsibilty.
This way, when user with responsibilty other than “Siebel Adminstrator” logs in, he will see “Quote Entry Applet copy” which contains * for the field “Account”.If the user has responsibility of Administrator , he will see “Quote Entry Applet” in which “Account” field does not has *.
Try it out and let me know in case of questions.
Nice workaround! This would work.
Probably, thinking more about it, the requirement would be to make the field itself Required or Not Required based on the responsibility, and not just the red *. However, I guess that can also be done by using combinations of the new Responsibility field (as recommended by Madhvi), and the Required User Property.
All in all, I am satisfied. Thanks, Madhvi.