If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Date Prompt - Optional how to clear Date edit box with JS

Started by Grayson_Basil, 25 Jul 2016 07:18:53 AM

Previous topic - Next topic

Grayson_Basil

Using 10.2.1,

I have a request to search invoice by date, but it could be optional.  Defaulting to 1900 is not an option since the user does not want this as I suggested this already.

How do I use an optional date prompt as an Edit box, how do I clear the date value - what other methods do you use for optional date


ftgarcia0618

Hi Grayson,

To clear the date and override the default value add the script below to an HTML item and place it just after the date prompt. Replace the "###" with your prompt's name.

<script language="javascript">
document.formWarpRequest.elements["txtDate###"].value='';
</script>
<body oNLoad=init()>
<form name="formWarpRequest">