AnsweredAssumed Answered

Can we have if condition in <documentation> tag

Question asked by thiagarajan on Feb 15, 2016
Latest reply on Feb 19, 2016 by hari
1. I have page called submit issue page where user can submit issues. If the issue priority is low or medium, then it will go to one level of approval. If the issue priority is high or elevated it needs two level of approval.

In submit issue screen i have the following documentation.

Approver 1 Comments: ${approver1Comments}
Approver 2 Comments: ${approver2Comments}

It is displayed as it is for the first time. approver1Comments will have value only in second screen and approver2Comments will have values only in third screen.

if approver1 rejects the request with a comment "Change the issue priority and resubmit" then the control goes to submit screen once again where i see the approver1 comments properly.

How to prevent if from displaying for the first time. I tried few if conditions but none of them worked.

if (${approver1Comments} != null)
{
Approver 1 Comments: ${approver1Comments}
}

if (${approver2Comments} != null)
{
Approver 2 Comments: ${approver2Comments}
}

Your help is highly appreciated.

2. How to have line breaks in <Documentation>. It tried /n and </br> but none of them worked.

Outcomes