Jump to content

Archived

This topic is now archived and is closed to further replies.

web2000

Validate a label on another form

Recommended Posts

Hi,

On an editable form, when the user clicks on the submit button i want it to validate a label on another form and display the error on the form that has just been submitted.

I am using Codecharge studio 3.1

Is this possible? I have got the following code but am having no luck

If anyone knows of any alternative code please help

Thank you very much

[code]global $shoppingcart;  
    global $NewRecord1;  
  
    if (CCStrLen($NewRecord1->total->GetText()) && $NewRecord1->total->GetValue() < 250) {  
        $shoppingcart->Errors->addError("Im sorry, but it has to be more than 250");  
    };[/code]

Share this post


Link to post
Share on other sites
Sorry... your going to need to be more specific, supply more detail. You might also need to explain some of what this code actually does. Your using non standard object, how are we meant to know what they do?

Share this post


Link to post
Share on other sites
[!--quoteo(post=374334:date=May 16 2006, 11:41 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 16 2006, 11:41 AM) [snapback]374334[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Sorry... your going to need to be more specific, supply more detail. You might also need to explain some of what this code actually does. Your using non standard object, how are we meant to know what they do?
[/quote]

Hi,

I am trying to validate a label on a form, so that if the number is less than £250 it will give an error and wont continue submitting the form.

Its validation

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.