Skip to Content
avatar image
Former Member

Dynamic font colour in adobe forms SAP?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 06, 2016 at 10:21 AM

    Try below may help you,

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded