Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#830542
after i finish to fill up on text box. When I submit to next form. the form is ok but when i send it back on the first form it will be back on enable requirments

$('#dropdownVar004').on("dblclick click keyup keydown",function() {
if(((((((((((($(this).getValue() == "14") || ($(this).getValue() == "13") || ($(this).getValue() == "12") || ($(this).getValue() == "11") || ($(this).getValue() == "10") || ($(this).getValue() == "9") || ($(this).getValue() == "8") || ($(this).getValue() == "7") || ($(this).getValue() == "6") || ($(this).getValue() == "5") || ($(this).getValue() == "4") || ($(this).getValue() == "3")))))))))))) {

$('#multipleFileVar001').enableValidation();

} else {

$('#multipleFileVar001').disableValidation();


}
});
#830554
Hi again here is a short video of the form
Attachments
Return result the recommended was on again
(319.94 KiB) Downloaded 110 times
Second form is view mode When i return to 1st
(148.33 KiB) Downloaded 150 times
This is my first form
(575.55 KiB) Downloaded 114 times
#830555
It looks like you are doing all of your validation in an event handler which means if your form opens with data already populated there is no event to run your logic.

What you should try is putting your logic into a function and then calling that function from your event handler. Next you need to call that same function when the form is open. This will cause your validation to run when the event is triggered and once when the form is opened in the case when it is sent back.

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]

A crypto casino clone script is a ready-made softw[…]