I have a script that appears to be written correctly. I cannot find any reason why it should not work. However it is not receiving or submitting a parameter.
The variables prehtml and posthtml appear in the table in the field NewsTitleformatted, but the text from NewsTitle is missing. For example, if the data for NewsTitle is entered as Promotion Received, the data in the NewsTitleformatted field appears as . The "Promotion Received" text is not there.
The script is:
function Headline()
{
var between = document.getElementById("InsertRecordNewsTitle").value;
var prehtml = "";
var posthtml = "";
var bold = prehtml + between + posthtml;
document.getElementById("InsertRecordNewsTitleformatted").value=bold;
}
document.getElementById("caspioform").onsubmit=Headline();