Skip to Content
0

Dynamic font colour in adobe forms SAP?

Oct 17, 2016 at 02:40 PM

82

avatar image
Former Member

Depending on condition I want to change font colour of text .If GV_status is Draft the text should be displayed in red else it should be displayed in red.

I have tried many properties as follows.

if ( GV_STATUS.rawValue eq "(Draft)" ) or ( GV_STATUS.rawValue eq "(DRAFT)" ) then

this.fillColor = "255,0,0"

endif

I have also tried following properties

$.parent.GV_STATUS.fontColor = "255,0,0"

GV_STATUS.caption.font.fill.color.value = "255,0,0"

I have written this code in readyform as well as initizlize form but nothing is working for me.

Can you please tell what mistake I am exactly making .Or tell me the correct format of writing.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Oct 22, 2016 at 02:29 AM
0

Hello experts,

Can anyone help me out?Issue is really urgent.I have observed 1more thing ,the field I am colouring is floating field . normal text field can be colured.

Share
10 |10000 characters needed characters left characters exceeded
Prajesh Desai Dec 06, 2016 at 10:21 AM
0

Try below may help you,

Hope this helps.


untitled.png (21.9 kB)
Share
10 |10000 characters needed characters left characters exceeded