1
0
-1

Hi. I want to auto display a value based on previous version.


1.MainForm

- commodity (option binder - commodity > commodity1) **User will select one option.

- grade (option binder - commodity > commodityGrade) **Automatically display the value based on commodity option.


2. Commodity CRUD (Type of Commodity)

 - commodity1

 - commodityGrade (option binder - grade)


3. Grade CRUD (Type of Grade)

- grade1

------------------------------------------------------------

In the main form, I would like the grade select box to automatically display based on the commodity option.

I dont really know how to write Javascript...but this is roughly what I would like to do

<script>

if (commodityGrade == EG) {
grade = "EG";
} else if (commodityGrade == FG) {
grade = "FG";
} else {
grade = "NG";
}
</script>


If someone has a better script or method, please do advise me on the matter.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Maybe you can follow the steps here Dynamic Cascading Drop-Down List

      1. Danial Jefri

        Thank you, it works now.

      CommentAdd your comment...