Gossamer Forum
Home : Products : DBMan : Installation :

Validated errors when adding to db

Quote Reply
Validated errors when adding to db
I get these 2 errors when I am adding info to the database ( i have YES radio button clicked)
  • Validated (Invalid format)
  • Validated (Too long. Max length: 3)

    I have %db_def setup as the default - i only changed the number (9)

    Validated => [9, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],

    # Radio fields. Field name => comma seperated list of radio buttons.
    %db_radio_fields = ( Validated => 'Yes,No' );



  • html.pl

    Code:
    <TR><TD ALIGN="Right" VALIGN="TOP"><$font>Validated:</FONT></TD>
    <TD VALIGN="TOP">&nbsp;|; print &build_radio_field ("Validated", "$rec{'Validated'}"); print qq|</TD></TR>


    I have searched the forums and I cant find an answer... anyone?



    Thanks

    Last edited by:

    reap: Jul 1, 2003, 10:39 AM
    Quote Reply
    Re: [reap] Validated errors when adding to db In reply to
    If I MANUALLY upload a default.db with the correct information (validate = yes) - and test out a "modify record" I can switch Validate to NO and then modify it again back to YES without the errors. BUt when I do and ADD new record it gives me that error in the above msg
    Quote Reply
    Re: [reap] Validated errors when adding to db In reply to
    Double check your .cfg file's field numbering and be sure that you have them numbered starting with 0 (zero).

    It sounds like maybe the numbering is off or if you are using a userid field that it may not be defined correctly in the variable:

    $auth_user_field = 1;

    Unoffical DBMan FAQ

    http://creativecomputingweb.com/dbman/index.shtml/
    Quote Reply
    Re: [LoisC] Validated errors when adding to db In reply to
    $auth_user_field = 1; worked I can add records now.

    Thanks for the help.

    Last edited by:

    reap: Jul 8, 2003, 8:20 AM