Jump to content


Caspio Evangelist
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Vitalikssssss

  1. Hi @Tonie, There is not need to specify the character which you would like to encoded in the code. I assumed that you have a Tabular Report Datapage and created a code based on the link you have provided: <a href="#" id="link-[@cbRecordIndex#]">[@calcfield:1#]</a> <script> // DO NOT TOUCH FROM THIS POINT var params = []; addParameter = function(qs, val){ params.push(`${qs}=${encodeURIComponent(val)}`); } //UP TO THIS POINT var link_id = "link-[@cbRecordIndex#]"; var base_url = "[@app:URL_2]"; addParameter('cid', '[@field:ID]'); addParameter('fn', '[@field:
  2. Hi @CMorris, Values from virtual fields do not have a datatype. You would need to wrap the fields reference with single quotes to make them string type and convert the string to float type. You can use T-SQL function CAST or CONVERT for this. So, your expression will look like this: CASE WHEN '[@cbParamVirtual2]' = 'mm' THEN CAST('[@cbParamVirtual1]' AS FLOAT)/25.4 ELSE CAST('[@cbParamVirtual1]' AS FLOAT) END Regards, vitalikssssss
  3. Hi @roattw, I know it is possible to convert Single Record Update Datapage to Details Datapage, so it could preserve the settings. I think it would not be possible with Submission Form and Single Record form since they have different structures. Regards, Vitalikssssss
  4. @gregbovenkerk, you should consider Calculated value with SQL expression if you would like to show the result on a form (Submission/Details). This features explained in this articles: https://howto.caspio.com/datapages/datapage-components/calculated-values/ https://howto.caspio.com/datapages/reports/advanced-reporting/calculations-in-forms-and-reports/ Regards, vitalikssssss
  5. Hi @ivan77 Here is one of the old tutorials. Caspio UI has changed slightly since this video but the concept stays the same.
  6. Hi @Christo, When do you receive this error? It might be related to Timeout redirection to an invalid address. Check advanced settings of your Caspio Authentication and change it to "Same page". Send us a link to your web-page if the issue still persist. Regards, vitalikssssss
  7. Hi @rjvelarde, I think the easiest way to achieve is by using Formula field in the table with CASE expression. e.g. CASE WHEN [@YOUR_FIELD] = 'Follow up' THEN '<span style="color:#ffff00;">'+[@YOUR_FIELD]+'</span>' WHEN [@YOUR_FIELD] = 'Irrigation System' THEN '<span style="color:#0066ff;">'+[@YOUR_FIELD]+'</span>' WHEN [@YOUR_FIELD] = 'New Well' THEN '<span style="color:#009933;">'+[@YOUR_FIELD]+'</span>' ELSE 'Not defined' END Finally, you can render the content of the formula output as HTML if you enable the HTML option in Formatti
  8. It looks like you have selected a Search from instead of Predefined parameters as explained in the video tutorial. You will find the detailed answer in the video tutorial I have sent you above. Regards, vitalikssssss
  9. Hello @ryancys, You may check the following tutorial video for more information related to the deployment of two Datapages in one web-page:
  10. Hi @gregbovenkerk, What Datapage type do you use? It is possible to add Total & Aggregation field on Tabular report in order to get count of records. You can check this article: https://howto.caspio.com/datapages/reports/advanced-reporting/totals-and-aggregations/ Hope this helps. Regards, Vitalikssssss
  11. Hi @ryancys, You would need to use separate from the the search which will be based on Submission Form. You may use Virtual fields for this Submission Form. Virtual fields can pass parameters to the report to filter the data. Also, you would need to embed both Submission Form and Report on single web-page. The concept described in this article: https://howto.caspio.com/tech-tips-and-articles/tech-parameters/add-a-search-interface-to-results-sets-page/ Calculated Value datatype is available on Submission Form and Single Record Update Form. Hope this helps. Re
  12. Hi @Bleman What type of cards you would like to process? With Stripe, you can charge almost any kind of credit or debit card: U.S. businesses can accept Visa, MasterCard, American Express, JCB, Discover, and Diners Club. Australian, Canadian, European, and Japanese businesses can accept Visa, MasterCard, and American Express. Regards, vitalikssssss
  13. Hi @GusAlford, I believe that you can find an answer in this post: Regards, vitaliksssss
  14. Hi @SDDENR, Perhaps you have the JS which throws an error on the hosting page since you have mentioned that issue can be replicated only on embed page. Try to embed the Datapage on different web-page in your CMS to check if the issues still persist. It would help if you could send us a URL of the web-page in question. Regards, Vitalikssssss
  15. Hi @galen, Please make sure that you do not do the following: - Collecting passwords on Text Fields (using label of the non-Password data type field as "Password"). - And/or have any notification/acknowledgment email that sends passwords in the body. You should contact Caspio Support if it does not help. Regards, Vitalikssssss
  16. Hi @SDDENR, Please check the browser console if there are any errors exist on a web-page where Datapage is deployed. To open the developer console window on Chrome, use the keyboard shortcut Ctrl+Shift+J (on Windows) or Ctrl+Option+J (on Mac). Do you use any CMS? Regards, vitalikssssss
  17. Hi @derek Well, you can add a Virtual field and use it in Condition. In order to get the existing value, you can may use Cascading Elements or Calculated value with SQL expression. Regards, vitalikssssss
  18. Hi @CoreyH, It is possible to create such a layout without declaring table in HTML block. I do not recommend using your approach because it will also need a cumbersome Javascript which would take a value from declared inputs and paste into Caspio inputs (fields). You can use the following feature in order to tweak the layout: 1. "No Label" for a field; 2. "Continue Next Element on the same line"; 3. HTML blocks for labels; You will be able to configure the DP like this: Hope this helps. Regards, vitalikssssss
  19. Hi @randybow, The Date&Time comparison methods is not available in View if you use the formula field as far as I understood. You need to make sure that each logic block of your CASE expression returns Date&Time datatype. Please try the following expression: CASE WHEN [@field:endDate] Is Null THEN CONVERT(Datetime, '06/01/2020', 101) ELSE CONVERT(Datetime, [@field:endDate], 101) END Hope this helps. Regards, vitalikssssss
  20. Hi @DarwinCastro I am glad that my suggestion helped. You can use the following design of task in order to check occurrences per month: Regards, vitalikssssss
  21. Hi @DarwinCastro, You can use Task feature in order to get the desired output. Here is an example of Task which will populate new table with unique record and count of them in the existing one. Hope this helps. Regards, Vitalikssssss
  22. Hi @kpcollier, Try the following JavaScript: <script type="text/javascript"> function formatAsDollars(el) { el.value = el.value.replace(/[^\d]/g,'').replace(/(\d\d?)$/,'$1').replace(/^0+/,'').replace( /\d{1,3}(?=(\d{3})+(?!\d))/g , "$&,"); el.value = el.value ? '$' + el.value : ''; } var fields = ["Subtotal", "MarkUp", "County_Tax", "Misc_Percent", "Freight_Total"]; //specify your fields here fields.forEach(element => { element = "InsertRecord" + element; // replace "InsertRecord" with "EditRecord" for Details/Single Record Update DP document.getElementById(el
  23. Hi @norkaman Do you use the following syntax to reference first 2 parameters? [@WID] and [@LBE]? Regards, vitalikssssss
  24. Hi @walker1376, Do you use Trading_Name as a display value i.o. ID in table relationship? I assume that you trying to compare ID with display value. Please send me a screenshot of your Table relationship, so I could give more precise suggestion. Regards, vitalikssssss
  25. Hi @walkerc, You will not be able to build a View with desired output because Joins cannot be configured with OR logic. I can suggested using a filtering criteria on Datapage in order to show the records from Main_Data table to the Contractor. You should use a Main_Data as a data source for your Datapage. Also you should enable authentication which based on "Contractor_Data" table for this Datapage. Finally you can use the following filtering logic: P.S. use TradingName i.o. Record_ID from my sample. Hope this helps. Let me know if you have any questi
  • Create New...