NetTalk Central

Author Topic: Refresh a drop based on another form field  (Read 3316 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Refresh a drop based on another form field
« on: December 19, 2011, 05:58:28 AM »
Hi all,

I have a form with a few entry fields on it, and a drop field at the end.

One of the first text fields specifies a filter condition for the drop field at the end.

How do I get the list of items in the Drop field to refresh when the text field is changed?

(NT6.09 by the way, on C8)

Thanks!
Devan

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Refresh a drop based on another form field
« Reply #1 on: December 19, 2011, 06:25:17 AM »
Devan - I figured this one out coincidentally just this morning.

When the field is entered I set a session variable rather like a parameter.

Then on the Browse lookup in the validate embed point I have something like:

If GSV(parameter)
   Set Filter
End

Remember to set that parameter session variable when you close the original form though!

HTH

John Fligg

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a drop based on another form field
« Reply #2 on: December 19, 2011, 06:28:39 AM »
>> How do I get the list of items in the Drop field to refresh when the text field is changed?

add drop field equate to reset field list on client-side tab of text field.

cheers
Bruce

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Refresh a drop based on another form field
« Reply #3 on: December 19, 2011, 11:40:43 PM »
John thanks for your tips.  I tried Bruce's suggestion and it worked great with little effort, so I didnt get around to trying your method.

I actually had this all set up earlier, but I had a stupid bug in my drop down filter code so was getting nothing in the drop down regardless of what I did!  ::)

All works now - thanks Bruce!