Siebel – HTML Code displayed in Error Message
by Madhvi AroraThere was a requirement in our project to make Account Field required in Quote entity conditionally. I have already discussed the solution to this and to show the red asterisk in my previous posts below:
Making a field conditionally required
Showing * on a conditionally required field
When user was creating record from list applet and on saving the record he got the right message as “Account is a required field”.
But to our surprise, when record was being created from form applet and now if the user saves the record, he got the following message..
img src=”images/icon_req.gif” alt=”Code Validated” border=”0″ space=”0″ hspace=”0″>Account is a required field.
We always thought that required field message is displayed with the name of the field which is in the BC. But after getting this message, it made me think that this error message takes the reference of the caption for the field in the applet.
This is the expected Siebel behavior to show the full caption of the field that is set to require so if the caption is different than the field name the user will be notified about the field name they see through the user interface.
The workaround to our problem was to either use scripting or do some configuration.
Using scripting was not a good idea, so I used configuration and it worked.
I followed following configuration steps which are described below:
(Note: This is for the case for form applet which uses Grid Layout)
1. Remove caption from the control for the field which is needed to be required.
2. Create a new record in Control in that applet with HTML Type as Label with just the html in the caption to show the asterisk with the name.eg. img src=”images/icon_req.gif” alt=”Code Validated” border=”0″ space=”0″ hspace=”0″>Account.
3. Place this next to the label of the required field so the required field does not need the html in the caption property
Then when the error is displayed you will not need to worry about the html because it’s in a different control.
Related posts:
- Siebel – Showing red asterisk on a conditionally required field In Siebel vanilla Application, we see a red asterisk (...
- Siebel – Number of rows displayed in List Applet Siebel Web Client by default shows only the first 7...
- Siebel – Make a field Required, conditionally There was a requirement in our project to make Account...
- Siebel – Autosave Opportunity data – Sample Code This is a follow up post on my previous post,...
- Siebel – Custom Applet Title There is an Applet title on the top of the...
- Siebel – Make MVG Field required – II Hi friends, This is a follow-up post of the post...
- Siebel – Make MVG Field required Siebel supports the concept of Multi Valued Fields, or the...
hai
i did not understand this thing . please tell me how the error mesg is occured and how ur solved. but if you say that we can non required field label with label *
Hi Vishnu,
This post is about showing * on a field which is not ‘Required’ based on the Required column in the Applet properties. We are making it required using User Properties and are showing the red * using custom methods.
If a field is made required by using custom methods, and the user tries to save a record without filling in that field, it will show up an Error Message. That is the Error Message we are discussing here.
There are two more posts before this post. Try going through the following posts one by one for better understanding:
http://geeksbloggingat.com/2009/04/22/siebel-make-a-field-require-conditionally/
http://geeksbloggingat.com/2009/04/23/siebel-showing-red-asterisk-on-a-conditional-required-field/
http://geeksbloggingat.com/2009/04/24/html-code-in-error-message/
I hope this helps!