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

Question

Question

Using Lookup Rule to block dates on calendar

asked on May 3, 2019

I'm attempting to block dates on a calendar based on dates returned to a hidden field via a lookup rule. What I've found is that the field won't populate with dates unless I have it visible, and I have focused the field. Is there a way to programmatically trigger the field to have the dates?

0 0

Answer

SELECTED ANSWER
replied on May 3, 2019

If you're just trying to get a list of values for the hidden field, either make it a dropdown so you can extract the options from the select, or put the hidden date field in a collection and use the "as new rows" option so it automatically adds them.

Based on what you're describing, it sounds like you're looking at the awesomeplete list of results, which only appears when the field has focus. This list is added/removed on-demand, so it is not going to be the most stable source.

 

Another option is to flip it around the other way. Instead of pulling the entire list every time, use the visible date field as a parameter on the database lookup and populate a hidden field with any matches. If a match is found, use a custom validator to flag the input as invalid.

0 0
replied on May 3, 2019

Changing to a dropdown worked flawlessly! Thanks!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.