a simple form query with java involved
i want to have a condition here when if current client is null then it should allow us to put in first_name and last_name.. right now it doenst display that on the form,,,,
when current client is yes then it displays a search for id and then it gets name from that id,any help will be welcome....
proc_face$.formFieldOpen('Current Client?',false,'');
if rec.current_client = 'Y' then
htp.p('<input type="radio" name="P_CURRENT_CLIENT" value="Y" checked onClick="showSection(this,''sec1'');">Yes');
htp.p('<input type="radio" '||h_disabled||' name="P_CURRENT_CLIENT" value="N" onClick="hideSection(this,''sec1'');">No');
elsif rec.current_client = 'N' then
htp.p('<input type="radio" '||h_disabled||' name="P_CURRENT_CLIENT" value="Y" onClick="showSection(this,''sec1'');">Yes');
htp.p('<input type="radio" name="P_CURRENT_CLIENT" value="N" checked onClick="hideSection(this,''sec1'');">No');
else
htp.p('<input type="radio" '||h_disabled||' name="P_CURRENT_CLIENT" value="Y" onClick="showSection(this,''sec1'');">Yes');
htp.p('<input type="radio" '||h_disabled||' name="P_CURRENT_CLIENT" value="N" onClick="hideSection(this,''sec1'');">No');
end if;
proc_face$.formFieldClose;
if rec.CURRENT_CLIENT = 'Y' then
htp.p('<tbody id="sec1">');
else
htp.p('<tbody id="sec1"style="display:none">');
end if;