Skip to main content
bisheswart9459
Known Participant
Feb 26, 2024 11:49 AM UTC
Question

breadcrumb pattern

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
    Brainy
    Feb 26, 2024 11:54 AM UTC

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

    bisheswart9459
    Known Participant
    Feb 26, 2024 11:57 AM UTC

    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
    Inspiring
    Feb 26, 2024 12:09 PM UTC

    Hello [mention:466b8d91c6644a268a25841953c896cf:e9ed411860ed4f2ba0265705b8793d05] 

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

    Participating Frequently
    Feb 26, 2024 2:14 PM UTC

    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
    Known Participant
    Feb 26, 2024 4:07 PM UTC

    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 ?

    Participating Frequently
    Feb 26, 2024 4:21 PM UTC

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