jbaanm
13th February 2015, 08:14
Is there any way possible to default conditional value in a form field?
Suppose if field 1 has X, then put A in field 2, also if field 1 is Y then put B in field 2.
We cannot modify the standard source code.
Is this possible to do at the form level without source code modifications?
I think DAL or User Exit will not help here as Data is not yet saved.

This is for LN FP8.

Thanks

bhushanchanda
13th February 2015, 11:24
Hi,

e.g.

If I have 2 fields comp.f and comp.t and I have to provide value to comp.t based on the value of comp.f then..

Go to DFE - Right Click on comp.t - Properties - In the form field, write this -

(comp.f<>30)?500:800 |* This means, if comp.f is not equal to 30 then comp.t becomes 500 else it shows 800.

But be aware that, the field positions i.e. sequence matters in this case. You need to check that.

Suppose if I put following condition for comp.f which is placed before comp.t,

(comp.t<>30)?500:800

it might not know the value of comp.t at the moment when it checks this expression. So, make sure you test properly.

jbaanm
16th February 2015, 23:33
Thanks a lot Bhushan.
It worked.