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

Question

Question

Javascript for values using a table in Forms

asked on September 3, 2019

Hi there, I am trying to get a default value to appear in a table where I am using different drop downs and currency. The end users can select multiple options and each option has a different price. Does anyone know the code I would need to use in order for the different amounts to appear depending on the selection they make within the drop down?

 

0 0

Replies

replied on September 3, 2019

Rather than using JavaScript, you might be better off setting up a database table. Store the drop down values in the table, then use a lookup to pull the default amount when the user makes a selection.

You could even populate the drop down options with a no-condition lookup, that way you can maintain everything in a table and never have to edit the form to make changes.

JavaScript is an option, but it is going to be a lot more complex than a lookup since you're dealing with a table. If you really want to go with the JavaScript route, this post will show you how to make sure it works with all rows, even if they're added by the user.

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

Sign in to reply to this post.