iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Can I Force User to Select a Category on the Editing Form? Currently the editing form validation requires the user to select Resource and Importance. Is it possible to add to that validation to require user to also select a Category?
Hello,
You can validate at OnEditingFormSave clientside event. Below is the snippet code. Hope this helps.
function WebScheduler1_OnEditingFormSave(controlId, action, eventView) { var s = ISGetObject(controlId); var editWindow = s.GetEditingFormWindow(); var wcCategories = editWindow.ISGetObject("wcCategories"); if (wcCategories.Values == null) { alert("Categories can not be Empty"); return false } else { return true; } }
Regards,Handy
Since I have Multiselect disabled I modified the code to look at value instead of values and it works fine...Thanks
function WebScheduler1_OnEditingFormSave(controlId, action, eventView) { var s = ISGetObject(controlId); var editWindow = s.GetEditingFormWindow(); var wcCategories = editWindow.ISGetObject("wcCategories"); if (wcCategories.Value == "") { alert("Categories can not be Empty"); return false } else { return true; } }
Hello Tim,
My previous code showed default categories in multiple selection. Your code for single selection is already correct. So, I think you will not find any problem in handle the validation.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname