The knowledge base is no longer actively updated, we have moved all content to our Community Support Forum

How can I validate user input?

Author: BitRock Support       Date: October 30, 2007 09:33       Tags: User input and custom installer pages

You can validate user input adding a <validationActionList> to the parameter. For example, adding the following code to the 'installdir' parameter, will prevent the user from selecting a directory that contains a space.


<validationActionList>
   <throwError>
      <text>This directory path can not contain spaces</text>
      <ruleList>
         <compareText>
          <text>${installdir}</text>
          <logic>contains</logic>
          <value> </value>
         </compareText>
      </ruleList>
   </throwError>
</validationActionList>

 

Comments

Link to article doesn't work

Author: Mark Wolff       Date: May 19, 2009 19:39

Near the top of this page, the “here” link is for a missing article.


Page is messed up

Author: Jerry Nairn       Date: October 22, 2010 17:34

All of the text below the xml example in this article, “How can I validate user input?” is obviously cut and pasted from another article, and doesn’t apply to this topic.


Extra text

Author: BitRock Support       Date: October 25, 2010 12:30

Thanks a lot for reporting it.

Best regards,

Juanjo