<apex:page standardController="Consum_Apply__c">
|
<script type="text/javascript">
|
if ('{!Consum_Apply__c.Yi_loaner_arranged__c}' > 0
|
) {
|
window.location.href = '/apex/ConsumTrialUpdate?parId={!Consum_Apply__c.Id}';
|
}
|
else {
|
window.location.href = '/apex/ConsumTrial?Id={!Consum_Apply__c.Id}';
|
}
|
</script>
|
</apex:page>
|