for this read only grid , if request is denied then for that row i need to show like Request has been denied ("comments for denied") and in brackets rejection comments as shown in pic .
Can someone help me with the code
Discussion posts and replies are publicly visible
Hi ZAINAB ,
a!gridColumn( label: "Answer", value: a!richTextDisplayField( value:{ a!richTextItem( text: /*normal text*/ ), a!richTextItem( text: "(required comment)", showWhen: /* give your condition here for denied tasks*/ ) } ) )
data is getting from record type
the above code is just a sample, if data is coming from recordtype use below notation
fv!row[recordType!yourRecord.fields.value]
getting the below error
code
Please add & after "(" in second rich text item
still same error Sri Ram Kaja
The record type you used for grid is Audit log. Now you cannot use requests in fv!row[] in second rich text item. Use relationship between audit log and request if there is any relationship added. Else try to add the relationship or get the request details separately in a local variable and then use that in rich text item
example: fv!row[recordType!AuditLog.relationships.Requests.requestStaus]
Sri Ram Kaja : I need only (reject test comments) only on one row or one particular row where it says request is denied .not for all rows.can you please advise
You haven't provided any detail as to your data structure, particularly how your general row data is tied to a particular rejection comment. Without knowing the structure, it's hard for anyone here to guess as to what code to suggest. Generally speaking when you want to display a comment in a grid row when that row has a particular status, you would be showing a comment that's also stored in that row, or at least stored in an entry specifically referenced by a member of that row. I can't really help you any further though, since the relationship in question is not something I or anyone else here can discern without more detail.