Automate

 View Only
  • 1.  Winshuttle Composer - Easier way to see required fields

    Posted 07-31-2020 10:56
    Anyone come up with an easier way to see required fields (other than the red *)?     I was thinking of coding each unfilled required field in yellow background, then resetting each required field's background to white once entered.  However I was hoping there was a less tedious way other than creating 2 rules per field.    Thoughts?  Experiences?    Thanks!

    ------------------------------
    Robert Zsedely | Business Architect
    Seneca Foods Corporation | Marion, NY |
    ------------------------------


  • 2.  RE: Winshuttle Composer - Easier way to see required fields

    Employee
    Posted 08-02-2020 14:45
    Robert,
    To make them more prominent on the screen, I would use the text editor in the form design and make the labels bigger or have a different background color etc. 
    I don't mess with the CSS file too much, but perhaps you can look into that as well.  
    But it looks like you want to change the look/behavior if it is blank vs. entered. This is only possible through rules. 

    I am curious if others have input on this. 
    Jayasri



    ------------------------------
    Jayasri Varyani | SE
    Winshuttle North America |
    ------------------------------



  • 3.  RE: Winshuttle Composer - Easier way to see required fields

    Posted 08-03-2020 04:30

    I suspect it would be easier to write your own custom validation logic in an external javascript file to do this – rapid changing of rules and logic is fairly cumbersome within composer (as you have to deploy and test each time – you can edit JS on the fly if needed in your browser debug window)

     

    Stephen


    Please consider the environment before printing this email. RSA are proud to be a responsible business - www.rsagroup.com/corporate-responsibility

    *********************************************************************************************************************************************************************************
    Royal & Sun Alliance Insurance plc (No. 93792). Registered in England & Wales at St. Mark's Court, Chart Way, Horsham, West Sussex, RH12 1XL.

    Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority.
    For your protection, telephone calls may be recorded and monitored.
    The information in this e-mail is confidential and may be read, copied or used only by the intended recipients. If you have received it in error please contact the
    sender immediately by returning the e-mail. Please delete the e-mail and do not disclose any of its contents to anyone.
    No responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent.
    *********************************************************************************************************************************************************************************





  • 4.  RE: Winshuttle Composer - Easier way to see required fields

    Posted 08-03-2020 08:18
    The class that indicates a required field on the lable is .frm_required. You could add a custom class to highlight the whole control and a function like this to call to add that highlighting.

    function setCustomRequiredStyling() {
    var requiredFields = document.querySelectorAll(".frm_required");
    for ( var i = 0; i < requiredFields.length; i++ ) {
    requiredFields[i].parentElement.classList.add("customRequired");
    }
    }

    You'd have to have another function for resetting to white once filled. We capture the event and parse out the data-rowid for table rows and the target for non-table row fields.


    ------------------------------
    Joshua Whitener | Technical Advisor
    Exxon Mobil Corporation | 8326258441
    ------------------------------