cancel
Showing results for 
Search instead for 
Did you mean: 

logo condition issue in adobe forms

03-26-2026 10:41 AM
RedaElg Discoverer
531 views 4 comments Go to solution
0 Likes
SAP Managed Tags
Labels
Learning
Subscribe

hello. im trying to set presence visible for light/dark logo based on a condition, but no matter what i try both of them show up, so either the condition is wrong, the data is returning null (which i dont get cause the binding is correct), or im missing something else.

white logo code:

 

 data.#pageSet[0].Page1.logosubform.whitelogo::initialize - (FormCalc, client)
var v_bukrs = ZRGO_FRM2.HEADER.DS_EKKO.BUKRS

if (v_bukrs == "C020") then
    this.presence = "visible"
else
    this.presence = "hidden"
endif

 

 

dark logo code :

 

 data.#pageSet[0].Page1.logosubform.darklogo::initialize - (FormCalc, client)
var v_bukrs = ZRGO_FRM2.HEADER.DS_EKKO.BUKRS

if (v_bukrs == "C020") then
    this.presence = "hidden"
else
    this.presence = "visible"
endif

 

RedaElg_0-1774517935615.png

i tried calculate, docReady and layout:ready events but nothing changes. any ideas?

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

RedaElg
Discoverer
0 Likes

found a fix using javascript, not sure if it translates to formcalc

if ($record.HEADER.DS_EKKO.BUKRS.value != "C020") this.presence = "hidden";

a singular condition on the dark logo, which was missing the ".value" to retrieve the value of the data binding. put it on top of the white logo and now one will override the other on the layout if the condition is correct. 

Answers (1)

Answers (1)

sravan_aleshwaram
Active Participant
0 Likes

 

Your visibility logic for light/dark logos in an SAP Adobe Form wasn’t working because of three main issues:

1. Wrong data binding path

2. Wrong event used ("initialize")
3. Code issue 
 

RedaElg
Discoverer
0 Likes
like i said i tried multiple events but none worked, as for data binding i tried the full path and the $ path but both didnt work.i retrieved the binding from data view tab so it should be okay, and as for the code issue as far as i can tell it looks okay, any ideas where i went wrong ?