Can we configure a rule in an eForm base
Can we configure a rule in an eForm based on the value in the Language drop down control for the form?
-
Not directly. You can add the following Java script to the form to set a hidden form field and then configure your rule against the value in that control.//On form load - Onchange of the language the form is reloaded so no need of a change eventeFormEvents.onFormLoadComplete = function(){ //METHOD to fetch selected language var lang = $('[aria-owns="currentLanguage_listbox"] span .k-input').text(); //Save the selected language in a textBox field on the form eFormHelper.setFieldValue({ fieldId: "TextBox1", value: lang }, function (result) {});}Note: You will need to change TextBox1 to match the hidden control on your form.
请先登录再写评论。
评论
1 条评论