Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By PipSqueak
#814499
Hi

How do I make a panel collapsible? I have a large Terms and Condition panel which I’d prefer the users or managers don’t need to scroll through every time they are assigned the task, how do I make it automatically collapse?

Thanks!
By PipSqueak
#814546
Hi Amos,

This is close to what I want, but everytime I click the + it tries to validate the form and also it probably clashes with this code because it pops up the alert "Please select the Business Name". Any ideas how to get around it please?
Code: Select all
form = getFormById("5781590305ad7fdbf1566e8092474069");
form.setOnSubmit(function(){
   if  ($("#BusinessNameNotListed").getValue() == "0") {
     if ($("#NoBusinessName").getValue() == "0") {
       if ($("#BusinessNameDropDown").getValue() == "") {
       alert("Please select the Business Name.");
       return false;
       }
     }
   } else {
//   leave blank for now
   }
});
Thanks
User avatar
By amosbatto
#814554
Your code is executed when the Dynaform is submitted. You are probably using a submit button for your "+" button. You need to use a generic button instead, so the form won't be submitted when you click the "+" button.
User avatar
By amosbatto
#814598
You need to change the button from:
Code: Select all
<button id="guaranteeButton" style="display: inline; padding: 0px; margin: 0; width: 22px; height: 22px; 
    border: 1px solid grey; border-radius: 5px;">
To:
Code: Select all
<button type="button" id="guaranteeButton" style="display: inline; padding: 0px; margin: 0; width: 22px; height: 22px; 
    border: 1px solid grey; border-radius: 5px;">
If you use type="button", it will change from a submit button to a generic button.

DO we have to pay tax for trade https://www.getfir[…]

Mosquito Zapper Reviews

https://www.facebook.com/sammosquitozapper https:[…]

https://www.facebook.com/sammosquitozapper https:[…]

Are you looking for a simple method to import EML […]