How to make a field mandatory which is extended from other table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2018 12:35 AM
Hi All,
I am not able to make a field mandatory through UI Policy as the field is an extention of a field in another table. While using client script we are not able to make it mandatory using "setMandatory" function.
Is this possible by througing errors to stop the page? If yes can anybody tell me how to do so.
If not is there any other way possible?
Please help me with this.
Thanks And Regards
Devina Khare
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2018 12:57 AM
Hi,
You can do this by ui policy. use dot-walk-in while selecting fields in ui policy actions.
otherwise try dictionary override in configure dictionary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2018 01:24 AM
You can achieve this by dictionary override. And select mandatory option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2018 02:02 AM
Hi,
If you are working on prior Kingston the UI Policy will work. If you have upgraded to Kingston then you have to write client script onSubmit form.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 04:59 AM
Hi Upender,
We tried writing client script onSubmit but the function setMandatory is not working for that field as this field is extended form some another table.
Thanks And regards
Devina Khare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 05:52 AM
Hi,
OnSubmit you have check if value is blank then alert a message or set message on fields. You can not use setMandatory.
So on submit check field value.
if(g_form.getValue('yourField')==''){
alert('Please select a value');
return false;
}
Thanks