Skip to main content
bisheswart9459
February 26, 2024
Question

breadcrumb pattern

  • February 26, 2024
  • 18 replies
  • 0 views

In this I have a button called legal situation and when I will click the button it will take look like as below.

but the thing is that see in the breadcrumb pattern one middle thing is coming which I do not need .when i will click the legal situation button the bread crumb pattern should be personal details /legal situation .

And when i click back button it should take me to the page where i got navigated from ,dynamically .
please someone help me in this !

    18 replies

    harshitb6843
    February 26, 2024

    It is a simple change you can make in your code. What problem are you facing adding it while making this change?

    bisheswart9459
    February 26, 2024

    after personal details ,development is the section and after development legal situation is the section. What I am doing here is i am directly jumping to the third section .

    konduruc733182
    February 26, 2024

    Hello [mention:466b8d91c6644a268a25841953c896cf:e9ed411860ed4f2ba0265705b8793d05] 

    Please share your code snippet. Would help others understand and resolve your issue quicker.

    February 26, 2024

    Hi bisheswart9459,
    you can take a reference from this code. let me know if I need to explain it further

    .

    a!localVariables(
      local!selectedIds:1,
      local!data:if(
        local!selectedIds=3,
        {
          a!map(
            id:1,
            name:"Personal Details"
          ),
          a!map(
            id:3,
            name:"ligal Situations"
          )
        },
        {
        a!map(
          id:1,
          name:"Personal Details"
        ),
        a!map(
          id:2,
          name:"Development"
        ),
        a!map(
          id:3,
          name:"ligal Situations"
        )
      }
      ),
      {
      a!sideBySideLayout(
        items: a!forEach(
          items: local!data,
          expression: a!sideBySideItem(
            width: "MINIMIZE",
            item: a!richTextDisplayField(
              value: {
                a!richTextItem(
                  text: fv!item.name,
                  link: a!dynamicLink(
                    value: fv!item.id,
                    saveInto: local!selectedIds
                  ),
                  linkStyle: "STANDALONE"
                ),
                a!richTextItem(
                  text: if(
                    fv!isLast,
                    "",
                    " /"
                    )
                )
              }
            )
          )
        )
      )
      }
    )

    bisheswart9459
    February 26, 2024

    this will be only applicable when you will directly go to legal from personal details , if someone will go one by one ,i.e,first personal then development and then legal at that that also the value of local variable currentNodeId will be 3 then at that condition it will not work right ?

    February 26, 2024

    It will also work in that condition, but you have to modify it with your requirements.