Hi,
If not javascripts, Can we include any scripting language within XSDs?.
Is there any method by which we can introduce a conditional aspect in the forms?
for eg:
Suppose i have a drop down box containing 5 values (1,2,3,4,5)
Suppose i have a textbox, the value of which depends on what the user clicks in the drop down
Suppose i want to create a condition wherein if i select any enumeration value >3, the text box automatically gets a fixed value (VERY HIGH) and if i select a value ❤️ it automatically gets populated with the value (MODERATE)
Now these two values can be hardcoded in the xsd as fixed values of elements of type xs:normalizedString (ie the text box).
So all we would need is a conditional statement that would read the values selected by the user from the drop down menus
So my question to you is, is there any method by which we can incorporate a conditional statement within the xsd itself ?
Some thing to the tune of
xs:if (value==x) xs:then (consequence)
Please guide me
Warm Regards,
Nikhil Sharma