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
3 replies
Subscribers
6 subscribers
Views
1959 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
#Grid#show-when condition I have a grid with a required field in a User Inp
sswilliams
over 11 years ago
#Grid#show-when condition
I have a grid with a required field in a User Input node. I have a show-when condition on the grid. Appian allows me to submit the form with a null value in the grid. However, If there is now show-when condition on the grid, Appian does not allow me to submit the form with a null value in the grid.
Why does the show-when condition impact the functionality of a grid with a required field?
I now have to use extra nodes to check if the process variable in the grid is null after the form is submitted....
test.zip
OriginalPostID-105808
OriginalPostID-105808
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 11 years ago
If a condition hides the field then it will not be rendered at all at runtime and therefore the required condition doesn't exist in the form. If you still want the required condition to apply even when the grid isn't visible you can use FormAPI.hide/show in the onLoad event - this way the grid is rendered in the form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sswilliams
over 11 years ago
Hi Tim. I actually want the require condition to apply when the grid is visible, only. But, it is not working when I use 'show only when'...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Malathi
Certified Lead Developer
over 11 years ago
This can be done by placing the required field within a section. The 'show only when' condition can be then applied to the section. By doing this way, the required validation will be applicable only when the section and in turn the grid gets displayed.
Hope this helps
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel