Jump to content

JoshuaJobin

Members
  • Posts

    9
  • Joined

  • Last visited

About JoshuaJobin

  • Birthday 06/06/1993

JoshuaJobin's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am in need of using a list - string in authentication. I would like to have a list field with "roles", and when a datapage loads, I access the values through the authentication fields. It could equate to a comma separated string, then I would just compare to see if the role is contained in the string. The List - String datatypes currently do not show up, but is there a way around this? Maybe by using a formula field to create our own string from the List datatype? Currently, I have each role as a Yes/No column, but it is getting pretty hectic with many roles. I would like to limit it to a few columns if possible. Has anyone encountered this yet? Thanks, Josh
  2. Are you sure this works? I am encoding the URL with Javascript, but every time I get a "No Preview Available" message. When I decode the URL back, it downloads fine... Here is my code: <iframe id="iframe_pdf" style="width:80%; height: 1100px; display: none;" align="middle" frameborder="0"></iframe> <script> window.onload = function(){ if(!("[@field:cs_form/]" == "")){ embed_pdf(); } } function embed_pdf(){ var google_link= "https://docs.google.com/gview?url="; var google_param = "&embedded=true"; var pdf_link = "[@field:cs_form/]"; var encoded_pdf_link = encodeURIComponent(pdf_link); var iframe_window = document.getElementById("iframe_pdf"); iframe_window.style.display = "block"; iframe_window.src=google_link + encoded_pdf_link + google_param; } </script> EDIT: I found out why it wouldn't show, the datapage was authenticated. And unless you are signed in OR Un-authenticate the datapage, you will not be able to see the PDF. Now... is there a way to pass google the authentication...
  3. You would have to create another 64,000 text field (with a different name), and copy the code for the purpose of the other signature box. But not directly copy, there is some code you can re-use. I would suggest requesting professional help, if you do not know much JS or HTML.
  4. I have a combined chart and report datapage that I use to display a list of jobs and their status. I would like the list and chart to have dynamic colours according to their status. This is quite easily accomplished, and in fact I have already completed it. My issue comes in place with AJAX. I cannot disable AJAX on a combined chart/report datapage, therefore when I do a bulk edit on my report, the chart reverts back to the default colours. I am guessing this is because the chart loads without running the javascript in the datapage. Is there a way to execute javascript in a datapage not only on load, but also on an AJAX call? Thanks, Josh EDIT: I just realized that it's not because of the combined chart/report that I cannot turn off AJAX, but it is because of the grid edit.
  5. Were you able to get this to work? The link is currently broken. Thanks, Josh
  6. I am using this with an autosubmit. But, I am changing the YES/NO value before submit, rather than onsubmit. Much like: <script> document.getElementById('CHECKBOXID').checked="True"; document.getElementById('caspioform').submit; </script> I also have a 10 second delay (using setTimeout) in between the value change and submission. This doesn't seem to work for me. Any idea? EDIT: I was able to use this and it worked: document.getElementById('CHECKBOXID').value="Y";
  7. I am going over this now. And I was able to get it working, for the most part. It will only work if the listbox contains MORE than 4 items. The only code change I made was the line: if (x1[0].length > 4) { cleanResult = result.substring(0,(result.length-4)); } I changed it to: if (result.length > 4) { cleanResult = result.substring(0,(result.length-4)); } Essentially just removing the "OR" at the end of the string. If it compares to x1[0].length, it is only checking to see whether the listbox has more than 4 options in it. We would like to compare the result to see if it has the last 4 characters on the end " OR ", and remove them.
  8. I am running into this as well, with nearly 100 datapages. I have a Dev account and a Production account. How would you go about merging the changes from the Dev account to the Production account? When you import a datapage into an empty account, the AppKey, for the most part, stays the same. The only difference is the first 5 characters in the AppKey (Which is luckily account related). So, I am wondering if there is a way to import the App into a Production environment, and it auto-detects which Datapages need updating. Thanks!
  9. What if the App already exists on both the Developer and Production accounts? How do we merge the Dev account to update only the datapages that have changed or have been added?
×
×
  • Create New...