Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Appian Employee
    in reply to arung0001

    Can you paste the SAIL you currently have?

  • 0
    A Score Level 1
    in reply to Danny Verb

    {
      a!localVariables(
        local!applicationConfig: rule!PRO_HR_QE_GetApplicationConfig(
          queryFilters: a!queryFilter(
            field: "isActive",
            operator: "=",
            value: true
          )
        ),
        a!cardLayout(
          style: cons!PRO_HR_COLOUR_NAVIGATION_BACKGROUND,
          showBorder: false,
          showWhen: ri!showWhen,
          contents: {
            a!columnsLayout(
              columns: {
                a!columnLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        a!richTextIcon(
                          icon: "support",
                          altText: "life buoy",
                          caption: "Support information",
                          link: a!safeLink(
                            uri: index(local!applicationConfig,"supportLink",null)
                          )
                        ),
                        " ",
                        a!richTextItem(
                          text: " Support",
                          link: a!safeLink(
                            uri: index(local!applicationConfig,"supportLink",null)
                          )
                        )
                      },
                      showWhen: index(local!applicationConfig,"enableSupportLink",null)
                    )
                  }
                ),
                a!columnLayout(
                  contents: {
                    a!sideBySideLayout(
                      alignVertical: "MIDDLE",
                      items: {
                        a!sideBySideItem(
                          item: a!richTextDisplayField(
                            labelPosition: "COLLAPSED",
                            align: "RIGHT",
                            value: {
                              a!richTextIcon(
                                icon: "phone",
                                altText: "phone"
                              ),
                              " ",
                              a!richTextItem(
                                text: index(local!applicationConfig,"supportPhoneNumber",null)
                              )
                            },
                            showWhen: index(local!applicationConfig,"enableSupportPhoneNumber",null)
                          )
                        ),
                        a!sideBySideItem(
                          width: "MINIMIZE",
                          item: a!richTextDisplayField(
                            labelPosition: "COLLAPSED",
                            align: "RIGHT",
                            value: {
                              a!richTextIcon(
                                icon: "envelope",
                                altText: "email"
                              ),
                              " ",
                              a!richTextItem(
                                text: index(local!applicationConfig,"supportEmail",null),
                                link: a!safeLink(
                                  uri: "mailto:" & index(local!applicationConfig,"supportEmail",null)
                                )
                              )
                            },
                            showWhen: index(local!applicationConfig,"enableSupportEmail",null)
                          )
                        )
                      }
                    )
                  }
                )
              }
            )
          }
        )
      )
    }

  • 0
    Certified Senior Developer
    in reply to arung0001

    Hi arung,
    so your issue is more a style question than a showwhen issue.

        a!cardLayout(
          style: if(
    	    and(
    			not(toboolean(index(local!applicationConfig,"enableSupportLink",null))),
    			not(toboolean(index(local!applicationConfig,"enableSupportPhoneNumber",null))),
    			not(toboolean(index(local!applicationConfig,"enableSupportEmail",null)))
    		),
    		"STANDARD",
    	    cons!PRO_HR_COLOUR_NAVIGATION_BACKGROUND
    	   ),
          showBorder: false,
          showWhen: ri!showWhen,
          contents: {
            a!columnsLayout(
              columns: {
                a!columnLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        a!richTextIcon(
                          icon: "support",
                          altText: "life buoy",
                          caption: "Support information",
                          link: a!safeLink(
                            uri: index(local!applicationConfig,"supportLink",null)
                          )
                        ),
                        " ",
                        a!richTextItem(
                          text: " Support",
                          link: a!safeLink(
                            uri: index(local!applicationConfig,"supportLink",null)
                          )
                        )
                      },
                      showWhen: index(local!applicationConfig,"enableSupportLink",null)
                    )
                  }
                ),
                a!columnLayout(
                  contents: {
                    a!sideBySideLayout(
                      alignVertical: "MIDDLE",
                      items: {
                        a!sideBySideItem(
                          item: a!richTextDisplayField(
                            labelPosition: "COLLAPSED",
                            align: "RIGHT",
                            value: {
                              a!richTextIcon(
                                icon: "phone",
                                altText: "phone"
                              ),
                              " ",
                              a!richTextItem(
                                text: index(local!applicationConfig,"supportPhoneNumber",null)
                              )
                            },
                            showWhen: index(local!applicationConfig,"enableSupportPhoneNumber",null)
                          )
                        ),
                        a!sideBySideItem(
                          width: "MINIMIZE",
                          item: a!richTextDisplayField(
                            labelPosition: "COLLAPSED",
                            align: "RIGHT",
                            value: {
                              a!richTextIcon(
                                icon: "envelope",
                                altText: "email"
                              ),
                              " ",
                              a!richTextItem(
                                text: index(local!applicationConfig,"supportEmail",null),
                                link: a!safeLink(
                                  uri: "mailto:" & index(local!applicationConfig,"supportEmail",null)
                                )
                              )
                            },
                            showWhen: index(local!applicationConfig,"enableSupportEmail",null)
                          )
    				    )
    				   )
    				 }
    			  )
    			}
    		   )
    		 }
    	   )
    	 }		
    	)

  • 0
    Certified Lead Developer
    in reply to arung0001

    FYI, you preferably shouldn't delete (or overwrite) your posts once your question has been answered, as people in the future might find your post when searching and find the answers they're looking for without having to make a whole new post.