This topic is locked

about required fields in master detail form

11/21/2011 1:48:28 AM
PHPRunner General questions
R
renegade author

hi admin or to anyone helpful! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=18384&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />
i made a form in master detail format. i chose to 'display child records on add page' so i can add detail record on add page of master.
both master and detail tables have required fields. but there is weird thing going on.
usually, required detail table fields are not checked when pressing save button. (result is master table has been added)

but there were also times when required details table fields were being check. not consistent. (result is no thing added)
can anyone help me make this consistent?
cheers

C
cgphp 11/21/2011

Some manual coding is required. Check this thread: http://www.asprunner.com/forums/topic/18029-master-detail-problem/

R
renegade author 11/22/2011

i really think this can work without manual code by me.
for example:

  • if i didnot select any value in one drop down box (required field) in the details, the required fields for the details will not be checked
  • but when i select one value in required drop box in the details, the program will check other required details when submitting
    is it possible to check the details from the begin?

R
renegade author 11/22/2011



i really think this can work without manual code by me.
for example:

  • if i didnot select any value in one drop down box (required field) in the details, the required fields for the details will not be checked
  • but when i select one value in required drop box in the details, the program will check other required details when submitting
    is it possible to check the details from the begin?


admin (sergey?) please help!