Having problem with automatically populate look up text field

Having problem with automatically populate look up text field

I have been looking and looking through these forums for an answer on this but so far have not found anything that will work.  I want to be able to make a selection from a dropdown and have it fill in the text field below it automatically with the value pulled from that record.
I have one form called Class_List which holds a bunch of classes and their prices.  The class name field is 'Class' and the price field is 'Price'.  I have Student_Registration_Form where students can sign up for a class.  They select a program.  When they select their program, it changes the class list for the dropdown below (field 'Class') (that works fine).  Then when they choose their class, I want the price field below to automatically populate with the correct price from Class_List. 
Based on another post I read, here is what I have so far:

in "On User Input" I have: 


if (input.Class != "" ) 
{ myClass  =  Class_List[Name == input.Class];
input.Price = myClass.Price;


}

When I save the script I get the following error:
Error at line:0
Form Class_List does not exist in this application




How do I get a lookup text field to populate automatically?

Thanks




      • Sticky Posts

      • My Zoho Story #19 - How and IT service provider, CTSP, are streamlining customer support using Zoho

        My Zoho Story is a video podcast series where we connect with Zoho users worldwide to hear from them about their experiences with Zoho and how it became an integral part of their everyday business life. Our recent 'My Zoho Story' took us to Australia
      • My Zoho Story #18- How Mirage Visual Limited achieved enhanced customer service experience, using Zoho

        My Zoho Story is a video podcast series where we connect with Zoho users worldwide to hear from them about their experiences with Zoho and how it became an integral part of their everyday business life. Our recent interview with Sam Blenkiron from Mirage
      • My Zoho Story #17 - How Superior Trucking Payroll Service scaled their business with Zoho

        My Zoho Story is a video podcast series where we connect with Zoho users worldwide to hear from them about their experiences with Zoho and how it became an integral part of their everyday business life. In our recent episode, we had the opportunity to
      • Update on the upcoming Zoho User Group meetups - Q1

        Hey Zoho Community!  How're you all doing? We have an important announcement about the Zoho User Group meetups this quarter - Owing to the looming threat of COVID - 19, we're recalling several of our ZUG meetups that can't be run locally and are pulling back our Zoho teams who have traveled for these events. We have also suspended Zoho meetups run by our local partners and user group leaders as we do not want any of our users to come in harm's way. For those of you who have not seen the email about
      • Eighth day of Christmas - Zoho Recruit

        Check out the story behind our sixth day of Christmas post. ​ The eighth day of the 12 days of Christmas relates to Zoho Recruit  "On the eighth day of Christmas my true love sent to me: eight maids a milking, seven swans a swimming, six geese a laying, five golden rings, four calling birds, three french hens, two turtle-doves, and a partridge in a pear tree." The eight maids walking up with portfolios in their hands signifies Zoho Recruit's recruitment solutions built to provide diverse, end-to-end