Jump to content

techguy

Caspio Ninja
  • Posts

    29
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

techguy's Achievements

  1. I am thinking that as well. if I pop a modal and put a caspio datapage on it, then have detail screen come up, it is below modal. I will see what i can mess with to make it work.
  2. Good day! I have a datapage that is embed on a pop-up modal on a page. When I click the button, the modal pops up and everything works great. The tab report is able to inline edit, however the dropdown will not work for editing a field with dropdown. The field looks correct, with the correct current choice, and the drop-dwon icon is there.. just does not drop down to allow a new choice. The inline edit works when I preview.. but not how I have it inside a modal pop-up on the page. My guess the modal and inline edit with a dropdown causes this... Any suggestions?
  3. so maybe I can make a report page work for me.. I assume I would need to change the script for datapage type , but my report pages when updated do not refresh.. do you think that might help?
  4. The dropdown is the one called StatusLocation - all on same script and datapage on the refresh.. so if I update, then it will not refresh the whole page? If I submit form it does?
  5. Bravo!!! You are amazing! a little more maybe.... 1. Is there a way now in this script on the dropdown, when the selected option is 'Off' it also turns the checkbox off (unchecks it?) 2. does the page refresh on submit on refresh because it is a single record update page? Should I try to make this work with another page type. The refreshing of the entire page sucks, lol Thank you soooooo much. a few little tweaks hopefully and one less task!!!
  6. As a note, I have responsive turned off since it buggers up the styling if it is on. I have it in a menu space and very specific css requirments. Not sure if the code changes with responsive is OFF
  7. Actually, I think I had copied and pasted and left some brackets.. the code does work with the dropdown... sorry for the confusion.. however still does not submit when I check or uncheck the box with the else if
  8. Just tested and when I added that, the dropdown no longer triggers the submit either
  9. This did not submit the form. <script type="text/javascript"> document.getElementById("EditRecordStatus").addEventListener('change', function(event) { if (document.getElementById("EditRecordStatus").checked==true){ document.getElementById("EditRecordStatusLocation").value='Online'; } else if (document.getElementById("EditRecordStatus").checked==false){ document.getElementById("EditRecordStatusLocation").value='Off'; } }); <script type="text/javascript"> document.getElementById("EditRecordStatusLocation").addEventListener('change', function myFunction(event) { // submit the form if an value is selected setTimeout('document.forms["caspioform"].submit()',1000); }); </script>
  10. As a note, I changed the page a little where the check box hides the dropdown if not checked.. I then tried to put these scripts together to make the functionality work. If I change the dropdown, this triggers the submit.. however if I uncheck the checkbox I want the dropdown to change to 'off' and submit, if I check the box, it unhides the dropdown and I want the dropdown to show 'Online' and submit . the actions works with the scripts (I can see that the new value of the dropdown is 'online' for instance, but checking or unchecking does not trigger the submit. I am trying to trigger the submit when the field changes value... <script type="text/javascript"> document.getElementById("EditRecordStatus").addEventListener('change', function(event) { if (document.getElementById("EditRecordStatus").checked==true){ document.getElementById("EditRecordStatusLocation").value='Online'; } else if (document.getElementById("EditRecordStatus").checked==false){ document.getElementById("EditRecordStatusLocation").value='Off'; } }); </script> <script type="text/javascript"> document.getElementsByName('EditRecordStatusLocation')[0].onchange = function() {myFunction()}; function myFunction() { // submit the form if an value is selected setTimeout('document.forms["caspioform"].submit()',1000); } </script> If you have any suggestions I would appreciate it! THANKS
  11. Hello. This solutions works well.. but the entire page refreshes when the submit occurs. I do have ajax enabled. On the same datapage there is also a check box (styled as toggle) and I set the same thing for this.. As a note this is a single record update form. 1. I need the screen to NOT refresh entire webpage, either the checkbox or dropdown refreshes 2. I need a script that sets the dropdown to a specific value when the checkbox is unchecked 3. I need a script that set sets the checkbox off/unchecked when the person selects the 'off' from the dropdown Thank you for any help or suggestions!
  12. May, I copied the code from the inspector, created an html block and copied it after my search fields. the new button shows up but i am not able to get the original one to go away, it is right still there as well.. any suggestions?
  13. I have a tabbed report page that uses authentication of logged in user to compare a field in the table (UserID field) that matches. Problem is I have a list of 5 or 6 items that are added for all users and I have set the userID listed as "system" for those items. I cannot figure a way to use the OR function with the authentication check to pull the records that are "system" as well as the auth userID check. There has got to be an easy way to say authenticated userID OR "system" Any ideas.. Probably basic.. thanks for helping!!!
  14. I have a task that runs, but I am having issues with the date. I want the date to return the current today date.. this task works, but I do not want to manually set the date.. any suggestion how to make it use "today's" date? This works exactly how I want if I manually change the date to the today date.. but I want this automated and run at 11:45pm at night for the current day. It is easy to schedule the task daily, just ca not get it to use the "today's" date.
  15. Hmmm, I tried that and actually it does not work. This form is embedded in a modal and when the pop-up screen comes up the first field is still not focused and you have to click in the field to scan a barcode or enter the data.. any other suggestions?
×
×
  • Create New...