on 06-04-2007 1:10 PM
Hello,
I have created a simple model which generates query results based on two input fields. I would like to set on of the fields as required, so for that I set it's required property to true.
When I run the model it indicates that the field is required by marking it wil a red astrik yet when I hit Submit no check is done to verify that the input field indeed contains a value.
Hi,
Use javascript to do input field validation in clientside and give an alert or use message bar to display the error message.Try this
<hbj:button
id="...."
onClientClick="validate()"
.......(required attributes)/>
<script language="javascript">
function validate()"
{
alert("Enter some value");
}
</script>
u can do validation at server side also.
Regards,
tamil K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can also do this:
On the submit button create a formular for "Disabled":
BOOL(IF(@FIELDNAME1=="" OR @FIELDNAME2=="",true,false))
Button is disabled until a value is entered.
Best regards
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.