How to Remove Value from field

chanikya
Tera Guru

Hi All,

kindly help me on below one

there are two List type fields PR Parent, PR Child

if Parent value removed from PR Parent then that Parent related Child values should be removed from PR Child.

find_real_file.png

 

PR Details table designed like this.

find_real_file.png

17 REPLIES 17

Yousaf
Giga Sage

Hi Chanikya,

I think simple clearValue('Your Field Name') in Client Script will work

var parent = g_form.getValue("parent");
if (parent=='empty'){

g_form.clearValue('child');
}

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Hi Yousaf, 

I am Not asking that to clear Child field. let me explain clearly 

Example : 

In PR Parent field I took :  A , B , C  

In PR Child field I took :  AAAAA , BBBBB , CCCCC values   :   Here "AAAAA" of Parent is "A" . 

So If I remove "A" in 'PR Parent' then it's related child value "AAAAA" only should be removed from 'PR Child' field . Other values ( BBBBB, CCCCC ) should not be removed from PR Child, because that values of Parents still there in PR Parent right .

 

any suggestion/  and updates please 

Aman Kumar S
Kilo Patron

Can values manually be added in PR child- or it will only be populated based on PR Parent field.

Best Regards
Aman Kumar