You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Conditions for Lookups Based on Step or Stage

asked on August 28, 2023

The latest updates for Forms 11 included the ability to put conditions on field rules based on the step or stage the instance is in the Forms process. This helps make it so you can now create a single form and show or hide fields (among other things) based on those criteria instead of creating multiple forms.

One of the advantages of creating multiple forms for the same process though is that if lookups were not needed at a certain point of the process, you could remove them per form. It would be great if conditions could be added to Lookups that would only perform the lookup based on what stage or step the instance is at in the process.

7 0

Replies

replied on August 29, 2023

We are currently working on the implementation of this. Aiming for October release in cloud and Q4 for self hosted. Reference ID #476484

4 0
replied on August 18

@████████ I am guessing this was postponed. Is it still on the roadmap?

 

0 0
replied on August 18

I totally misread this post originally and just saw the step and stage part haha. I'll add it to our list. We're looking at adding more options for lookups right now.

 

1 0
replied on September 5 Show version history

It was recently brought to my attention that for now, you can cancel lookups with the LFForm object
 

// When lookup rule 2 is triggered, 
// if step is "Start", 
// cancel the lookup call.

LFForm.onLookupTrigger(() =>  {
    if (LFForm.step.name !== "Start") {
        return { cancelLookup: true };
    }
}, { lookupRuleId: 2 }); 

It has a slightly odd behavior if you are using a single line field with autosuggestions to trigger lookups, but works fine otherwise.

But, the team is doing a refactor of our lookup rules right now so we can better maintain existing and future use cases. Adding conditions to lookups will come after we finish this effort!

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.