Jump to content


Caspio Ninja
  • Posts

  • Joined

  • Last visited

Everything posted by cflapt

  1. I have a submission page with an iframe in it. Within the iframe is a report. I have js within the iframe that copies field values from the iframe report into the submission page fields. One of the fields (rx_2 below) in the iframe report is a number value. When copying this rx_2 field to the submission page (field labeled rx_2 as well) I'd like to copy the number value and add 1. For example if the iframe rx_2 field value is "3" I would like 4 to appear in the submission page after the copy. Here is the code: <script> window.onload = function(){ // this runs when the iframe has been loaded var parentInsertRecordrx_2Field = parent.document.getElementsByName('InsertRecordrx_2'); var iframeEditRecordtreatment_note_rx_2Field = document.getElementsByName('EditRecordtreatment_note_rx_2'); parentInsertRecordrx_2Field[0].value = iframeEditRecordtreatment_note_rx_2Field[0].value; } </script> Thanks in advance for the help.
  2. I have a details page with text fields that allows the user to submit data. After submission the destination is the same datapage so the user can keep editing the details page if they wish. After they click submit I'd like a progress bar/status bar that takes over the screen and says something like "Saving...." or "Processing......" Just like this js example does: http://forums.caspio.com/index.php/topic/4314-js-auto-submit-a-datapage/ Also, if a user makes changes to the details page and tries to close the window before submitting, I 'd like a message to save "You have made changes to this form that you have not submitted/saved. Are you sure you want to close this window." Thanks in advance for the help.
  3. I'd like to create a patient appointment/scheduling calendar for a doctor's office. The calendar datapage is not suited for this type of application. The time slots need to be fixed on the side like Google Calendar or Outlook's calendar. Does Caspio have an instant app for this? Have any Caspio user developed such an app they would be willing to share? Is there an opensource option I could integrate with Caspio? If I have a 3rd party develop it, how will it integrate with my Caspio database? via web services? Thanks.
  4. Okay, and then the parameters to be received in the floatbar would be received from a query string in the webpage URL?
  5. Hi, I currently deploy my datapage directly from caspio. I use the following code for a floatbar that holds information at the top of the page (when user scrolls info and buttons stay at the top of the page like a toolbar). <span class="cbFloatBarText"><div id="float_bar">Patient:[@field:Patient_Registration_First_Name] [@field:Patient_Registration_Last_Name]</div></span> I am starting to migrate from deploying directly from caspio to deploying via embedding the datapage in my website. However, when I embed, the floatbar doesn't work. The floatbar contents simply show up at the top of my datapage, not the top of the screen. Any suggestions? Thanks.
  6. Unfortunately I can't get this to work. I tried both scripts (one at a time) by inserting them into an HTML block. here is what i inserted for the first script <script> function f_color(){ if (document.getElementById('EditRecordnote').value = '10') { document.getElementById('EditRecordnote').style.color = "red"; } } document.getElementById('EditRecordnote').onchange= f_color; </script> Here is the input code: <input type="text" class="cbFormTextField" size="2" maxlength="255" name="EditRecordnote" id="EditRecordnote" value="10">
  7. I have a text field with id=TextField. When the user types 10 into this field I would like the font color of 10 to change immediately to red (and if possible change the background color of the text field). It seems the best way to do this is change the CSS style of TextField when 10 is entered into this field. I searched online but couldn't get any of the available code to work. Thanks.
  8. I got it to work. For some reason I only get the problem if I test the code through Chrome html editor. When I actually deploy the datapage it works. Thanks for the help. One more question, I have datapage#1 with an iframe that contains datapage#2. I would like a button on datapage#1 that copies a field from datapage#2 and pastes the data within a field on datapage#1, ie., the exact same thing as the above code only across the iframe barrier. Do you know how to tweak the above code to accomplish such a function? Thanks again, I appreciate your help!
  9. Okay, thanks I will. I had the virtual field as display only.
  10. In a detail page I have a field that is a check box, I also have a virtual field that displays text. When the checkbox is NOT checked I want the virtual field hidden. For some reason the rules do not allow me to "hide" any virtual fields. Any suggestions why?
  11. I can't believe there is not a way to view PDFs within Caspio without downloading. If the PDF contains private information then if a user is on their home computer and they view the PDF the PDF will be download to their home computer.
  12. Hi, I am trying to implement the following function into a details datapage: Text Box 1 - user types in data Text Box 2 - user clicks button and Text Box 1 data is copied into Text Box 2 I have found javascript that makes this work with a checkbox, but I would like a button. I found javascript for a button but it doesn't seem to work within the datapage for some reason. Here is the button javascript I found. One problem is that the button html below trys to submit the page. <script> function onSubmitClick() { var box1 = document.getElementById('box1'); var box2 = document.getElementById('box2'); box2.value = box1.value; } </script> <textarea id='box1'></textarea> <textarea id='box2'></textarea> <button onclick='onSubmitClick(); return false'>Click Me</button>
  13. Thanks, but the PDFs contain customer specific information, i.e. I need to store them by customers. Storing them on an external server does not seem feasible.
  14. My users upload PDF files. When needed, they would like to view these files later as embeded documents within a datapage. The following shows how to embed pdfs, but only pdf NOT stored on the caspio database? http://howto.caspio.com/tech-tips/tech-tip-embed-documents-in-datapages.html Thanks for the help.
  15. This code doesn't work on my datapage. I have a datapage (http://b6.caspio.com/embedded form...) embedded on my site (www.site.com) within a table. I then have another datapage (search and report, list results only; http://b6.caspio/iframe form...) within in iframe on the details page of the embedded form, ie. <iframe>src=http://b6.caspio/iframe form...</iframe>. The iframe is within a table, the code of which is in a HTML block of http://b6.caspio.com/embedded form... Here is the code within the html block of http://b6.caspio.com/embedded form... <table width="200" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="200" height="112" valign="top"><iframe frameborder=no; scrolling="no"; style="width:100%; height:400px" name="contact_form" title="contact_form" src="http://b6.caspio/iframe form...">Sorry, but your browser does not support frames.</iframe> </tr> <tr> <td height="105" valign="top"></td> </tr> <tr> <td height="100" valign="top"></td> </tr> </table> Thanks for the help.
  16. Hi, to add a browser tab icon for a website, you have to reference it inside the <head> section of the page source code, not inside the DataPage. Place the ico address in header: <link rel="shortcut icon" href="ico address"> My question: how do I dynamically change the "ico address" with parameters passed by a caspio datapage? I'm currently using direct from caspio deployment method. Thanks.
  17. Hi, I would like certain fields from a details page to show up in the browser's tabs at the top of each browser window. Currently these tabs only display the title of the webpage, I believe this is standard. I would like to replace the page title with certain fields from a details page. My users like to work on several customers accounts at once so they want to be able to quickly find the browser tab associated with each customer. ie. right now the tab text for this caspio forum window is "Posting New Topic - Caspio.." Thanks.
  18. I'm looking for a Caspio-certified developer or developer familiar with caspio forms. Any recommendations? Thanks.
  19. Can't program, but I will find somebody who can. Thanks.
  20. Another approach involves using an HTML datapage with embedded search and report datapages that are dynamically filtered directly to the details page. So you have the details page of multiple forms embedded within an HTML datapage. I have code for a floating bar that contains a submit button but I don't know how to make that floating submit button trigger the submit buttons within the embedded forms. Any suggestions? Thanks.
  21. Thanks, but using the example in the link you gave me, I need data from the latest entry in the Log History to auto populate into the New Log page. In my scenario "new logs" contain much of the same info as previous log entries, so do avoid having the user re-type a lot of entries, I want these entries from the previous post to auto populate the new log. Let me know if this is not clear. Thanks.
  22. I have created a form that a healthcare provider fills out for each patient visit (Visit Form). Typically a patient will visit the provider several times and therefore have several records in the Visit Form table. The Visit Form for each visit is initially created by a submission datapage. After clicking submit a search and report datapage is automatically launched, searches the table for that particular Visit Form and displays the fields for that Visit Form in the details page. The healthcare provider can then edit this Visit Form record from the details page. The provider repeats the process and creates another record for each patient visit. Much of the data stays the same from visit to visit, but the provider must still record this data for each visit. In the details page for this Visit Form, how can I populate certain fields with data from a previous Visit Form record?
  23. I have two search and report datapages (Parent and Child for these purposes). I have the details page of the Child datapage embedded into the details page of the Parent datapage via iframe. Both datapages are editable. After making changes to both datapages I would like to click only one submit button (preferably the submit button for the Parent datapage) and have both datapages submitted. In other words, it seems that I need the submit button on the Parent datapage to activate the submit button on the Child datapage. Any thoughts on an efficient way to achieve this? Thanks.
  24. Thank you, but I don't quite understand. My forms are set up as follows: 1. Submission datapage: patient name and contact info entered. Unique ID titled Patient ID automatically created.Patient ID parameter passed on submission. Data saved in Patient Registration Table. 2. Search and Report datapage for additional patient registration info and also displays patient name and contact info: underlying table is Patient Registration Table. The search page receives the Patient ID and automatically searches the Patient Registration Table for the Patient ID retrieves the corresponding record. The details page fields are set to text fields so the user can edit these fields. In the details page I would like the user's entries to be saved on the fly as they type. Having to click submit and wait for the datapage to refresh is very distracting. Does your workaround address this issue? Thank you for taking the time on this, much appreciated.
  • Create New...