Leaderboard


Popular Content

Showing most liked content since 09/22/2017 in all areas

  1. 1 point
    Hi Accountability, I have noticed a syntax error in your code where you trying to reference Cascading Elements. Here is an example of the correct syntax for referencing Cascading Elements: Hope this helps.
  2. 1 point
    douvega

    Can you hide an HTML block with a rule?

    Dear roattw, Please replace your current HTML block for the following code: <div id="msg24"></div> <script> var radioField = document.getElementsByName('InsertRecordLSN_time'); var messageCnt = document.getElementById('msg24'); function getRadioValue(){ for (var i = 0, length = radioField.length; i < length; i++) { if (radioField[i].checked) { return radioField[i].value; break; } } } for (var i = 0, length = radioField.length; i < length; i++) { radioField[i].onchange = function(){ if(getRadioValue() == 'Specific'){ messageCnt.innerHTML = '<span class="cbInfoText">*24-hour clock</span>'; } else { messageCnt.innerHTML = ''; } } } </script> Let us know whether or not it works.
  3. 1 point
    I think you have some typos in your script. InsertRecordcbParmVirtual1 is incorrect, cbParamVirtual1 is the correct ID, virutal fields are not defined by Insert or Edit prefixes. Also, in dropdown fields, you can not have a keyup action since there is no such action, it should be onchange. Besides, to get dropdown values, you have a collection of objects, so you can not reference to them as you would do with normal text fields. To get dropdown values you should use: var e = document.getElementById("exactFieldID"); var ddValue = e.options[e.selectedIndex].value; To track the onchange event: document.getElementById("exactFieldID").onchange = yourFunctionName; Hope it helps.
  4. 1 point
    Hello roattw, You should disable Caspio HTML editor in order to avoid this issue. Hope this helps.
  5. 1 point
    For adding a date, I would suggest you using a system parameter. So, change the link var line for this: var link = five + ", " + four +" - " +one + " - " + two + " - " + three +" - [@cbTimestamp*]"; Then, remove the var six line inside the function and also remove the corresponding triggering field.
  6. 1 point
    There are some typos. document.getElementById is singular as it can be only one Element with the same ID, whereas document.getElementsByName is plural, that is why you need to specify which object you are referring to with [x] number. Please try this and advise whether or not it works. <script> function concatenate() { var four = document.getElementById("InsertRecordEmployee_First_Name").value; var five = document.getElementById("InsertRecordEmployee_Last_Name").value; var one = document.getElementsByName("InsertRecordEmployee_HR_Section")[0].value; var two = document.getElementsByName("InsertRecordEmployee_Document_Origin")[0].value; var three = document.getElementsByName("InsertRecordEmployee_Document_Title")[0].value; var link = one + " " + two + " " + three + " " + four + " " + five; document.getElementById("InsertRecordEmployee_Document_Link").value = link; } document.getElementById("InsertRecordEmployee_First_Name").onkeyup = concatenate; document.getElementById("InsertRecordEmployee_Last_Name").onkeyup = concatenate; document.getElementsByName("InsertRecordEmployee_HR_Section")[0].onchange = concatenate; document.getElementsByName("InsertRecordEmployee_Document_Origin")[0].onchange = concatenate; document.getElementsByName("InsertRecordEmployee_Document_Title")[0].onchange = concatenate; </script>
  7. 1 point
    After checking your site, please try the following: <script language="JavaScript"> function concatenate() { var one = document.getElementsByName("InsertRecordEmployee_HR_Section")[0].value; var two = document.getElementsByName("InsertRecordEmployee_Document_Origin")[0].value; var three = document.getElementsByName("InsertRecordEmployee_Document_Title")[0].value; var link = one + " " + two + " " + three; document.getElementById("InsertRecordEmployee_Document_Link").value = link; } document.getElementsByName("InsertRecordEmployee_HR_Section")[0].onchange = concatenate; document.getElementsByName("InsertRecordEmployee_Document_Origin")[0].onchange = concatenate; document.getElementsByName("InsertRecordEmployee_Document_Title")[0].onchange = concatenate; </script>
  8. 1 point
    Mathilda

    Data Page - Submission Form

    This kind of validation can be done using Java Script. Have a look at this post
  9. 1 point
    I have a datapage of type Report -> details. The page receives a parameter for the record ID. All the fields that I display to the user are configured as "Display only". How do I disable/hide the "Update" button at the bottom of the screen since I want this to be "view only" with no other buttons on the page? I looked at the help section at http://howto.caspio.com/datapages/reports/creating-a-report-datapage/ According to the instructions at the bottom of this page, " The next screen depends on the whether any field is editable. If at least one field is editable, destination options become available and they dictate where the user is directed to when they click the Update button on the details page. " However, as I said above, all the fields on my "Search and Report Wizard - Configure Details Page Fields are marked as "display only". yet I get the Update button.
  10. 1 point
    Regarding hiding multiply login forms, you may have a look at this article Since you use grouping, "inline insert" cannot be enabled for your report. However, if grouping is not very important for you, you may try disabling groping and enabling inline insert. IMHO this is best option for this case, because you can insert data directly on report
  11. 1 point
    Hello, I have a submission form that requests users to select a value in a drop-down. I would like to use the selected value to look up an email address, based on this value, in a different table, and populate a virtual field with that email address. I would then like to use the value in that virtual field to send a submission notification. How can I achieve this? I cannot see how to load a parameter from another table based on the value of a field. Any help would be much appreciated. Thanks, Julien
  12. 1 point
    Hi, The update button appears only if you have at least one editable field on the datapage. Perhaps you hide that field using rules or javascript. Anyway you can hide update button using java script. Just add header/footer and paste the following code in the footer: <script> window.onload = function hide(){ document.getElementById("Mod0EditRecord").style.visibility = 'hidden'; } </script>
  13. 1 point
    Hi Adam, You could add a new field "Date_filter" of Formula data type to your table and use the following function: Dateadd(hour,24,[@field:timestamp]) Replace [@field:timestamp] with the name of your field that holds date/time of original submission. In the pre-defined criteria report, on Select Filtering Fields screen, move "Date_filter" to Selected Fields area. On the Configure Filtering Fields screen click on the "Date_filter" field and choose "Before Now" as comparison type. Hope this helps. Ariel
  14. 1 point
    add a HTML Block wight below your file field and use the code below: <img id="blah" src="#" alt="your image" /> <script> $('#InsertRecordphoto').change(function(e){ var field = e.currentTarget; readURL(field); }); function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#blah') .attr('src', e.target.result) .width(150) .height(200); }; reader.readAsDataURL(input.files[0]); } } </script> Replace "InsertRecordphoto" with the file field actual ID. Add the following line to header of your web page source: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> <meta charset=utf-8 />