Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
5241 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Allow Section to be collapsed and Collapsed by default are now choices in the fo
joep45
over 10 years ago
Allow Section to be collapsed and Collapsed by default are now choices in the forms designer, but they don't seem to do anything. Am I missing something? We are using Tempo only forms no SAIL so far and version 7.6...
OriginalPostID-119802
OriginalPostID-119802
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
That feature is not available on Tempo Forms nor SAIL Forms. You cannot collapse sections yet.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 10 years ago
This can be done as a workaround on SAIL by conditioning the display of the section based on a local variable. A link field can be used to populate that variable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mikec
over 9 years ago
Ray, can you possibly provide an example of how you accomplished this? It would be much appreciated!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Per the relaese notes of Appian 7.7 this is now available in the product
forum.appian.com/.../Appian_Release_Notes.html:
"Designers can now mark a SAIL section as being collapsible by an end user."
More information at:
forum.appian.com/.../SAIL_Components.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Just keep in mind that isCollapsible flag only determines whether the section is collapsible or not, and has nothing to do with whether the section will be collapsed by default or not; which doesn't seem to be an available feature yet.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 9 years ago
Hi Mike, I've added the code I was referring to.
I'm using a link field to set a dynamic variable in the form, this dynamic variable is used to condition what is displayed in the link field, and to show/hide the section below it.
In my example it is set to false in the load statement, so the section is collapsed by default.
You can of course use ask characters or images rather than text in the link.
hidesectionSAIL.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 9 years ago
That should be ascii characters
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mikec
over 9 years ago
Hey Ray, this is pretty cool. My only question to you and I tried to do this with your code; can you configure it so that the Section has a label and that the CONTENTS of the section is what is collapsed? My use case requires that the section header be visible and the contents to be collapsed. Like I said I tried to move around your If statement but to no avail.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ray Croxon
Appian Employee
over 9 years ago
Hi Mike,
You can do this. It is easier to show or display a section as a whole because you can wrap that into one if statement. If you wanted to show the heading this way, you'd need an if statement around each field . So effectively you would show the section but hide each field.
There are a couple of better ways you could handle this.
Firstly instead of showing nothing, when the boolean is false, you could show an empty section with just a heading (defined seperately), then show the full section for true().
Secondly you could turn the show hide link, into a Rich Text field that looks like a column heading, and use a link inside the a!richTextItem, function, to determine if the section is shown.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mikec
over 9 years ago
Cool. I'll take a look. Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel