Need to create a dynamic milestoneField

Hi Team,

I'm having a requirement to make the below milestone object to Dynamic. 

Here 

Not Assigned, InProgress, Completed are fetching from one table and Review, Rejected are fetching from another table.

The milestone object should be like below. Please help me 

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • I'm not sure exactly what would cause the list to change but here is an example where you can swap out the options

    a!localVariables(
      local!isTrue: true,
      local!stepsOne: {"Not Assigned", "In Progress", "Completed"},
      local!stepsTwo: {"Not Assigned", "In Progress", "Review", "Rejected", "Completed"},
      {
        a!linkField(
          links: {
            a!dynamicLink(
              label: "Flip",
              value: not(local!isTrue),
              saveInto: local!isTrue
            )
          }
        ),
        a!milestoneField(
          label: "Milestone",
          labelPosition: "ABOVE",
          steps: if(
            local!isTrue,
            local!stepsOne,
            local!stepsTwo
          ),
          links: {},
          active: 1
        )
      }
    )
    

Reply
  • I'm not sure exactly what would cause the list to change but here is an example where you can swap out the options

    a!localVariables(
      local!isTrue: true,
      local!stepsOne: {"Not Assigned", "In Progress", "Completed"},
      local!stepsTwo: {"Not Assigned", "In Progress", "Review", "Rejected", "Completed"},
      {
        a!linkField(
          links: {
            a!dynamicLink(
              label: "Flip",
              value: not(local!isTrue),
              saveInto: local!isTrue
            )
          }
        ),
        a!milestoneField(
          label: "Milestone",
          labelPosition: "ABOVE",
          steps: if(
            local!isTrue,
            local!stepsOne,
            local!stepsTwo
          ),
          links: {},
          active: 1
        )
      }
    )
    

Children
No Data