How to make a field mandatory which is extended from other table?

devina
Kilo Contributor

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

18 REPLIES 18

Pothuraju
Mega Expert

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.

User733682
Kilo Explorer

You can achieve this by dictionary override. And select mandatory option.

Upender Kumar
Mega Sage

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

 

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

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