Skip to main content
August 25, 2022
Question

Clickable Link based on condition

  • August 25, 2022
  • 5 replies
  • 0 views

Hi All

I am a new Appian and need some suggestions.

Problem Statement:

Created Record Type and there is one column i.e. request number which i created clickable link

a!linkField(
links: {
a!recordLink(
label: fv!row['recordType!{2774e922-1a67-4b2a-8113-4d7f9649efdb}IMS Invoice.fields.{979355da-81d8-4800-b32a-a9c3de5ae348}requestNumber'],
recordType: 'recordType!{2774e922-1a67-4b2a-8113-4d7f9649efdb}IMS Invoice',
identifier: fv!identifier
)
}
)

When I click on the above link, a summary page will open.

So I want this link to be dynamic like based on the condition, I have one column i.e. status.

So when the status will be drafted different interface or page will open and when the status is submitted summary page will open

Need help

Thanks

    5 replies

    August 25, 2022

    under links configuration you can use if else condition.

    a!linkField(
    links: {
    if(
    status="drafter",
    a!dynamicLink(),
    a!recordLink()
    )
    }
    )

    harshitb6843
    August 25, 2022

    You can configure the dashboard that you want to open in the "dashboard' attribute. 

    August 25, 2022

    how can I mention my interface name in the dashboard attribute?
    And i have to click diff interface based on status condition

    harshitb6843
    August 25, 2022

    You can use this method when you have mapped those interfaces as 'views' in your record. 

    Participating Frequently
    August 25, 2022

    You have to apply an if condition to check your status and based on that you can decide you need to use startProcessLink(make sure changing is applied) or record link.