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

Question

Question

Form field not getting populated from Lookup Rule

asked on January 2, 2017 Show version history

Good morning,

We have a simple rule using Data Source that says:

if X is equal to Y, fill A with B; but nothing is getting filled on B.

Here is the messy part. Our institution is getting some values from a data source that looks like this: 

CN=username,OU=People,OU=Company,DC=company,DC=com

I had to use javascripts to pull the username from that very string, then place it in a hidden field so basically now what we are saying is, if the hidden field is the same as the person logged in then fill A with B.

Nothing gets filled in B, and I wanted to do some debugging, but I can't think of a way to do it.

One suspicion is that I don't have a record in our data source, hence returning nothing. Would there be an alternative way to debug this without asking for database access, maybe setting up some static content? 

In some instances, where I add static content via JavaScript, it seems as if the static content gets populated and then it disappears, as if the JavaScript fires before the Look Up Rule.

0 0

Replies

replied on January 3, 2017

So your lookup rule is to match the hidden field then fill A field with B column? When you want to trigger the lookup rule after you check the current user match the hidden field, you can use following script to trigger the lookup rule:

$(".hiddenfield input").change();

 

0 0
replied on January 5, 2017

Thanks for the response. 

 

I tried your suggested code in different ways but the behavior remains. We are in the process of trying this form again using v9 to ensure that we didn't miss anything during the migration of this particular form. 

 

Any other suggestions while we try to resolve this issue on our side?

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

Sign in to reply to this post.