Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
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.
Maybe you can follow the steps here Dynamic Cascading Drop-Down List
Thank you, it works now.
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.