on 06-23-2010 5:40 AM
Hi,
How to make a field(variable ) mandatory based on the other field (when selecting a particular filed from drop down ) in SAP ADOBE FORMS for MSS.
For Example if Contract type ' Fixed Term ' is selected from drop down, make Contract End Date field Mandatory.
In Adobe forms What is the code we have to add using Java script for the above example.
Thanks & Regards,
B. Thulasi.
Hi,
last line of the code is false..
this.CTEDT_CURR = "Mandatory". change this to this.CTEDT_CURR = this.manditory
Thanks,
Madhukar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bheema,
U can do like..
if contract type = "fixed term" then
this.rawvalue = this.manditory
thanks,
Madhukar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if we select contract type is 'Fixed term' from drop down in Adobform make Contract type mandatory.
For this i have written code in BADI user command method like
WHEN 'NEW_CONTRACT_TYPE'.
READ TABLE special_data INTO ls_special_data
WITH KEY fieldname = 'CTTYP_NEW'.
g_CTTYP = ls_special_data-fieldvalue+0(2).
IF g_CTTYP = text-001 .
READ TABLE special_data INTO ls_special_data
WITH KEY fieldname = 'CTEDT_CURR'.
IF sy-subrc EQ 0.
IF ls_special_data-fieldvalue IS INITIAL.
return-type = 'E'.
return-id = 'ZPTR'.
return-number = '001'.
EXIT.
ENDIF.
ENDIF.
ENDIF.
and i have add code inAdobe form javascript as
if($record.CTTYP_NEW.DATA[*].FIELD == "13 Fixed Term Contract".|
then
this.CTEDT_CURR = "Mandatory".
endif
but iam not getting the output.can u please help me
Thnaks & Regards,
B. Thulasi.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.