Hello!
I wonder how to insert a alert for the "Extra Fields (in the add an item box)"
For example so if the users on my website forget to type in the in the "URL box" it brings up a Alert " Please select a category"
I found:
if (trim( document.adminForm.title.value ) == "") { alert( '<?php echo JText::_('Item must have a title', true); ?>' ); } else if (trim( document.adminForm.catid.value ) == "0") { alert( '<?php echo JText::_('Please select a category', true); ?>' ); } else {
But how do I find the (for example document.adminForm.title.value) name for the URL field?
Hope someone understand what I mean.
Would have been really nice if someone could help me with this! Thanks in advance! :)
I wonder how to insert a alert for the "Extra Fields (in the add an item box)"
For example so if the users on my website forget to type in the in the "URL box" it brings up a Alert " Please select a category"
I found:
if (trim( document.adminForm.title.value ) == "") { alert( '<?php echo JText::_('Item must have a title', true); ?>' ); } else if (trim( document.adminForm.catid.value ) == "0") { alert( '<?php echo JText::_('Please select a category', true); ?>' ); } else {
But how do I find the (for example document.adminForm.title.value) name for the URL field?
Hope someone understand what I mean.
Would have been really nice if someone could help me with this! Thanks in advance! :)