Good day
Should I be able to do this?
function showCatsSubmit(catId,catName)
{
showCats.id.value = catId;
showCats.catName.value = catName;
showCats.submit();
showCats.eventTitle.value = createNewEvent.eventTitle.value
}
I have two forms on a page:
1..showCats
2..createNewEvent
My objective is to submit showCats, reload the page, then pass the value in showCats.eventTitle to createNewEvent.eventTitle
'ShowCats' is completely hidden. It is used to show a tree structure of items within a category, each with a checkbox for selection. 'createNewEvent' is seen on the page however when a category is selected ('ShowCats' is submitted) to show its tree items of course I loose the values any 'createNewEvent' form input fields.
mmmmmm, I haven’t coded a page this way before but logically it seems like it should be possible. I get no error's, everything is defined, the submit function runs fine, the tree works fine. Should I be able to say? (line 6 of the function above):
showCats.eventTitle.value = createNewEvent.eventTitle.value
TYIA
Should I be able to do this?
function showCatsSubmit(catId,catName)
{
showCats.id.value = catId;
showCats.catName.value = catName;
showCats.submit();
showCats.eventTitle.value = createNewEvent.eventTitle.value
}
I have two forms on a page:
1..showCats
2..createNewEvent
My objective is to submit showCats, reload the page, then pass the value in showCats.eventTitle to createNewEvent.eventTitle
'ShowCats' is completely hidden. It is used to show a tree structure of items within a category, each with a checkbox for selection. 'createNewEvent' is seen on the page however when a category is selected ('ShowCats' is submitted) to show its tree items of course I loose the values any 'createNewEvent' form input fields.
mmmmmm, I haven’t coded a page this way before but logically it seems like it should be possible. I get no error's, everything is defined, the submit function runs fine, the tree works fine. Should I be able to say? (line 6 of the function above):
showCats.eventTitle.value = createNewEvent.eventTitle.value
TYIA