How do I make Custom Script on Field & Form Rules at Request Templets?

How do I make Custom Script on Field & Form Rules at Request Templets?

Dear Sir.

For example

I want to make rule that,
when Category 'abc' selected,
then Sub Category 'def' and Item'ghi' selected, automatically.

There is two methods in script editor,
one is,
 $CS.setText(" SUBCATEGORY "," abc ");
,and the other is
$CS.setValue(" SUBCATEGORY "," 1 ");
and Item is almost same as avove, I know.

But It didn't works well.


First method,
 $CS.setText("SUBCATEGORY","abc");
works well, but
when the sub category inserted automacally,
then there is no item at item field, even script for item didn't works, neither.

Anyway,
I want to know the value of "1" below script.
 $CS.setText("SUBCATEGORY","1");

I think it is a Sub category field value's numeration, isn't it?

Please help me. Sir.
KCSONG

                New to ADSelfService Plus?