Add ability to run snippet when evaluating branch

Barry SchnellBarry Schnell πŸ’ŽπŸ’Ž
edited June 25, 2020 in Ideas
The new branching logic in the action framework is a welcome addition, thank you!!

Beyond the current "Formula" evaluation, would like to see the ability to call a snippet that would return true/false (similar to "Snippet returns true" in rendering conditions). Β Often times, merge syntax and/or UI-only formulas are not enough to evaluate the criteria required.

A workaround would be to call a snippet before the branch to set a field on a model/row and then use that in the branch formula but being able to call a snippet directly would simplify the design, make it more intuitive to someone reviewing the page and eliminate a "tracker" model as well as the unnecessary model processing overhead just to set a true/false value.

Thank you!
2
2 votes

Awaiting Review Β· Last Updated

Comments

  • Pat VachonPat Vachon πŸ’ŽπŸ’ŽπŸ’Ž
    edited June 25, 2020
    Or use the on error branch option and return false.
  • Barry SchnellBarry Schnell πŸ’ŽπŸ’Ž
    edited December 28, 2016
    Another viable workaround, thanks for mentioning Pat!

    I think one of the things that's really important with Skuid page development is making it as self-documenting as possible. Β There is still no way to include "comments" on components/pages so having a deliberate "branch" makes the page declaration much more intuitive than either of our proposed workarounds. Β Hopeful we'll see "calling a snippet" for formula added in a future release :)
  • Pat VachonPat Vachon πŸ’ŽπŸ’ŽπŸ’Ž
    edited December 28, 2016
    Very much agree on the commenting functionality.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!