Jump to content

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]
Link to comment
https://forums.phpfreaks.com/topic/9790-validate-a-label-on-another-form/
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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.