Mylene Posted November 28, 2016 Report Share Posted November 28, 2016 Hi everyone, I need to hide a standard button on my submission form and insert "Submit" button inline with the last field. How can I do that? Thanks! Quote Link to comment Share on other sites More sharing options...
Mathilda Posted November 28, 2016 Report Share Posted November 28, 2016 Hi Mylene, Add header/footer, open the header, disable html editor and add the following code in the header of the datapage to hide the default submit button: <style> #Submit{ display: none; } </style> Add an HTML block below all the fields and Disable the HTML editor and on the Standard tab and add the code below: <div style="text-align: center; position: relative;"> <input type="submit" onmouseout="cbButtonHover(this,'cbSubmitButton');" onmouseover="cbButtonHover(this,'cbSubmitButton_hover');" class="cbSubmitButton" value="Submit" id="Submit1" name="Submit"> </div> And the last thing, open the advanced tab of the last field on the form and check the "Continue the next element on the same line" checkbox. Hope it helps Quote Link to comment Share on other sites More sharing options...
MayMusic Posted December 6, 2016 Report Share Posted December 6, 2016 Since you are creating your custom button you need to copy the style and assign it to your button. Otherwise it will not pick up the Caspio style anymore Quote Link to comment Share on other sites More sharing options...
Fibonacciphil Posted May 19, 2018 Report Share Posted May 19, 2018 Will this affect ALL the the Submit buttons? I really only wanted to change one layout. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted May 21, 2018 Report Share Posted May 21, 2018 Since you are only applying the code to one DataPage only that DataPage will have the button on the same like. Quote Link to comment Share on other sites More sharing options...
Corpcat Posted October 26, 2018 Report Share Posted October 26, 2018 Can I use this method to put the login button inline with the password field on an Authentication HTML Datapage? Quote Link to comment Share on other sites More sharing options...
Alison Posted January 22, 2019 Report Share Posted January 22, 2019 Hi @Corpcat, Yes, you can. You should put the following code for your custom button to the HTML element in the Authentication : <input type="submit" name="xip_datasrc_Customer" id="xip_datasrc_Customer" value="Login" class="cbLoginButton"> And hide the original button using the following code in the footer in the Authentication: <script> let btn = document.getElementsByClassName("cbLoginButton")[1]; btn.style.display="none"; </script> To put the button inline with the previous field, you should check " Continue next element on the same line" for the Password field. Please refer to this screenshot:https://prnt.sc/mah2rh Corpcat 1 Quote Link to comment Share on other sites More sharing options...
Corpcat Posted March 5, 2019 Report Share Posted March 5, 2019 Thank you Alison Alison 1 Quote Link to comment Share on other sites More sharing options...
Elderberg Posted May 19, 2019 Report Share Posted May 19, 2019 On 11/28/2016 at 10:56 AM, Mathilda said: Hi Mylene, Add header/footer, open the header, disable html editor and add the following code in the header of the datapage to hide the default submit button: <style> #Submit{ display: none; } </style> Add an HTML block below all the fields and Disable the HTML editor and on the Standard tab and add the code below: <div style="text-align: center; position: relative;"> <input type="submit" onmouseout="cbButtonHover(this,'cbSubmitButton');" onmouseover="cbButtonHover(this,'cbSubmitButton_hover');" class="cbSubmitButton" value="Submit" id="Submit1" name="Submit"> </div> And the last thing, open the advanced tab of the last field on the form and check the "Continue the next element on the same line" checkbox. Hope it helps Can you advise what to put in the header of a Report Datapage to hide the search button? The first part of your code didn't work when i applied it to the Report Datapage, wishful thinking, but the 2nd part that goes into the HTML block worked great! Quote Link to comment Share on other sites More sharing options...
DefinitelyNot31337 Posted May 19, 2019 Report Share Posted May 19, 2019 2 hours ago, Elderberg said: Can you advise what to put in the header of a Report Datapage to hide the search button? The first part of your code didn't work when i applied it to the Report Datapage, wishful thinking, but the 2nd part that goes into the HTML block worked great! Try this one. <style> [class*=cbSearchButtonContainer] { display: none; } </style> Quote Link to comment Share on other sites More sharing options...
Elderberg Posted May 19, 2019 Report Share Posted May 19, 2019 Thank you kindly. Worked brilliantly! Quote Link to comment Share on other sites More sharing options...
PotatoMato Posted October 23, 2021 Report Share Posted October 23, 2021 Just to update this post. Caspio has already created a How-to article for this. You may check this link: https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/display-the-submit-or-search-button-inline/. -Potato Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.