Google Search

Wednesday, March 4, 2009

Removing prompt values using Javascript

Here is a piece of code that used to remove first two prompt values.
< Script>
document.formWarpRequest._oLstChoicesTestP.remove(0);
document.formWarpRequest._oLstChoicesTestP.remove(0);

< /Script>

When we create a value prompt we get a parameter name as first value in the prompt and second one we have a dash line .To remove this two values from the promptJust place the HTML item beside the prompt. But be sure to give a name to the prompt in value prompt properties.So that the same name is given in the code .
Example TestP(Replace with your Prompt name. The code works.)

1 comment:

  1. this seems totally insane?
    shouldn't there be a property on the prompt controls to hide or change the text on these from report studio?

    ReplyDelete