Jump to content

Vitalikssssss

Caspio Rockstar
  • Content Count

    384
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by Vitalikssssss


  1. 10 hours ago, Elderberg said:

    Hey Vitalikssssss,

    I implemented your suggestion using a Dropdown box.  Previously I had a VirtualField configured as a TextField with calendar pop up enabled. 

    Below are two lines of code which i used previously when the field was a TextField.  Can you advise how I would 1.) assign v_DateOnlyStamp as a value to the dropbox  2.) pass the selected value of the dropbox to a variable.  

    // Assign Current Date 
    document.getElementById('cbParamVirtual1').value=v_DateOnlyStamp;

    //  pass value to variable
    var date = document.getElementById('cbParamVirtual1').value;

    What is the purpose of this script? 

    Sorry, it does not make any sense to me.

    Regards,

    vitalikssssss


  2. 14 hours ago, geoffdude said:

    Is "Loops" even available for tasks anymore? I don't see it.

    Hi @geoffdude,

    It is available in 20.0 Caspio Bridge version.

    Probably your site has not been updated yet to 20.0 Caspio Bridge version.

    You can check your Caspio Bridge version within your account: from the top menu bar HELP --> About Caspio Bridge.

    Also, you can check Caspio Twitter for latest information about system updates.

    Regards,

    vitalikssssss


  3. Hi @Ed727,

    I assume that you have both Datapages deployed on a web-page with an embed method.

    You can use a JS which clicks on Submit button if my assumption is correct.

    Here a a code which you can use on web-page:

    <script>
    
    function submit () {
    
    document.querySelector("input[id*='Submit']").click();
    
    }    
        
    setTimeout(submit, 5000); 
        
    </script>

    Hope this helps.

    Regards,

    vitalikssssss


  4. Hi @Johnn,

    Yes, it is possible with CSS.

    Here is an example of CSS code. It should go into Datapage Header and also make sure that you disable HTML editor

    <style>
    
    input#InsertRecordYOUR_FIELD_NAME {
        background: #008000;
    }
    
    input#InsertRecordYOUR_FIELD_NAME {
        background: #00bfff;
    }
    
    </style>

    Replace "YOUR_FIELD_NAME" with your actual fields name and change the color according to your preferences.

    You can use this color picker.

    Hope this helps.

    Regards,

    vitalikssssss


  5. Hi @Elderberg,

    I can suggest using a simple Dropdown or Listbox for date selection and a lookup table which will be updated via Tasks on daily basis.

    Here is an example of Task which adds yesterdays, current date, and tomorrows date on daily basis.

    qQwNWlw.png

    You may also import this Task from attached archive.

    Hope this helps.

    Regards,

    vitalikssssss

    CaspioData_2019-Dec-02_1638.zip


  6. Hi @RickManolo,

    Well, for me the easiest way to do this is to use a Virtual field to display "Notes" and make an actual field "Notes" as hidden.

    I assume that you use Single Record Update or Details Datapage. 

    If the answer for above is yes, you can use the following JS code to concat existing Note with AddNote input after Update of the record.

    <script type="text/javascript">
    document.addEventListener('BeforeFormSubmit', function (event) {
    
            let target = document.querySelector('[id*="EditRecordNotes"]');
            let n_notes = document.querySelector('input[id*="EditRecordAdd_Note"]').value;
            let o_notes = document.querySelector('input[name*="cbParamVirtual1"]').value;
    
            target.value = o_notes + n_notes;
    
    });
    </script>

    Change the name of the fields if necessary, and also make sure you disable HTML editor prior to pasting the code.

    Hope this helps.

    Regards,

    vitalikssssss 

     

     


  7. Hi @Mikey,

    I am afraid that this feature is not available in Caspio and I doubt that you will be able to find and easy workaround.

    I have found a feature request in Caspio Ideabox where you can give your vote for this feature.

    Alternatively, you may consider using shareable Google Sheet where users can copy/past the data and Zapier to sync this spreadsheet with Caspio.

    Please note that only Premium account in Zapier allows to have near real time sync with Caspio. Free account has 5 minutes interval to perform a Zap.

    Hope this helps.

    Regards,

    vitalikssssss

     

     


  8. Hi @mgredmond,

    Caspio Style has a default settings for the width of the Datapage set to 100% which overrides the field width settings. 

    You need to check the width of the container where you placed in your CMS  and adjust width of the Datapage accordingly.

    Hope this helps.

    Regards,

    vitalikssssss 


  9. Hi @Ras2019,

    That is true, you cannot pass parameters via Bridge session from Result page.

    Quote

    Alternatively, I have considered to only pass non-sensitive parameters e.g. the Random ID, Product names etc. and then based on that, populate sensitive date to fields in the web form based on a SELECT statement getting the data from the table where the results originate from.

    I think this is the best option for your case.

    Regards,

    vitalikssssss

×
×
  • Create New...