Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Field Label to Show required field red asterisk (the graphic) dynamically

719404Mar 19 2010 — edited Apr 2 2010
Hi,

We have a form that uses an application item's value to determine what input fields are required. Using page validations we are able to enforce those required fields.
The problem is getting the required field asterisk graphic to display conditionally in the field label.

We've tried the suggestion in 4028011
It works but displays a text asterisk. We need it to display the graphic for the asterisk.

To describe assume have the following items:
APP_1 (application item)
P1_A_ASTERISK
P1_A

The default value for the P1_A_ASTERISK is a pl/sql function that checks APP_1 and sets P1_A_ASTERISK to '<img src="#IMAGE_PREFIX#requiredicon_status2.gif" alt="Required Field" />' if P1_A should be required.


If P1_A_ASTERISK is defined as hidden we get the html text <img_src.... in the P1_A label.

If P1_A_ASTERISK is defined as display as text, we see the graphic in the P1_A label.... that's good. But we also see the P1_A_ASTERISK item which we do not want.

Any suggestions on a way to dynamically display the required field graphic in certain fields label?
Thanks,
Nann
This post has been answered by 438381 on Mar 19 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2010
Added on Mar 19 2010
2 comments
3,420 views