Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Clearing part of a form and submitting

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37428
    Schmotty
    Participant

    I have a form with hundreds objects to select and a search that limits the objects to keywords. Once objects are selected, the user may need to search for one they cant find. They can do this, select the ones they need and all are kept on a nice little list. But then they need to clear the search and go back looking through the categories (like originally).

    I need to unset the value of that input without unsetting others and then submit the form. I’m not sure the best way to do this, as I want to keep everything selected.

    Any thoughts?

    #100340
    xpy
    Participant

    the first thing that comes to my mind is to clear it with JS, then, submit the form… The second thing is to put this input out of the form… Unless I’m not getting it right…

    #100448
    xpy
    Participant

    I don’t quite understand… Your problem is when you are checking if isset()??
    If so, you could also use if != ” after the isset() check like

    (if(isset($variable)) && $variable!=''){...}

    am I getting it right?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.