Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

339 profile views

htamraz's Achievements


Newbie (1/14)



  1. Hello, I implemented this example, but it's not working for me. I have a good feeling for the overall logic of the code syntax, but not sure what these references below are.. "Value1_1" "SearchID" "Value8_1" "Value9_1" When all is said and done, I would like to have the following done: >>when "Public" is selected: Display the virtual fields Virtual1 and Virtual2. Hide Virtual3 Have "cbParamVirtual1" write to the district field in table Have "cbParamVirtual2" write to the school field in table >>when something other than "Public" is selected: Hide the virtual fields Virtual1 and Virtual2. Show Virtual3 Have "cbParamVirtual3" write to the school field in table Thank you
  2. Thanks again for the helpful feedback. Let me give it a try. As you said, I only need to multi select as well as separate the values where there is a comma and then select them in a listbox, instead of showing them all together separated by comma. I don't need to store them in different rows.
  3. Thank you, but I already have a JavaScript that stores multiple selections as comma delimited entries. My problem is that if I need to reference the comma delimited values at a later time in a another listbox, they are presented as one record delimited by comma. I would have liked to have had a way to parse (i.e. break) the list so each entry separated by a comma is presented separately as opposed to being part of one string. For example, the entry: Red,Green,Purple Would be presented as: Red Green Purple
  4. Hello, I have a multi-select listbox on a datapage called "TeachingArtists" where a user can select one or more artists and assign them to an educational program that is taught in schools. On a separate data page, I have the user selecting the program name and have a cascading listbox that filters on program name so user sees only the artists linked to the program name. The problem I am running into is that the some of the entries in the listbox contain multiple values of artists names separated by commas where ideally I want each artist name listed separately. Is there a way that I can parse the comma delimited artist name values and present them as single entries in the listbox? I am attaching a screen shot for reference. Thank you for your help.
  5. Okay, I got this working now. Before I fixed the issue, I was not loading and hiding the underlying field "SchoolName" into the datapage. I selected my table field "SchoolName" and added it to my list of fields. I then wrapped two html blocks around the field to hide it so it is not displaying on my form. Only then would the JavaScript work as it apparently needs the field on the page somewhere to reference it for writing to the underlying table. It this obvious to others, it was certainly not obvious to me. To test this...when I removed the "SchoolName" field from my form, I could no longer write to the field using the script. <table style="display:none"> </table>
  6. Hi, This particular example is a text field. I used the suggested code above by Mathilda and I see a new row is created on submit, but the virtual field does not copy the value over to the underlying table field. I have another example where I need to implement this with multiple virtual fields, some of which will be cascading. I am testing now with this single virtual field and completely puzzled as to why it won't work. I appreciate any tips at this point!
  7. I tried using this JavaScript in my submission for and I am getting the error message You did not enter valid information in one or more of the fields. Below is the JaveScript I am using in the footer of a submission form. I am trying to pass the value of Virtual5 (text field) to the underlying table field SchoolName. I have other virtual fields on the form, but this is the only being referenced in the JavaScript Thank you ------------------------------------------------------////////////////////////////////////// <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var x = document.getElementById("cbParamVirtual5")[0].value; document.getElementById("InsertRecordSchoolName").value = x; } document.getElementById("caspioform").onsubmit=concatenate; </SCRIPT>
  • Create New...