Help with styling the calculation boxes

  • actismedia
    Asked on September 6, 2020 at 7:20 AM
    Also, could you please help me with styling the calculation boxes... please see the image here...

    I'd like a better looking box into which the numbers are entered and for the result.

    1599388802Screenshot 2020 09 06 at 11 Screenshot 10
  • Vanessa_T
    Replied on September 6, 2020 at 7:39 AM

    Can you please specify what exact style changes you'd like to have so that we can provide the CSS for you.

    You can share an annotated image or complete instructions like the color, font, size, border, etc.

    We'll await for your response.

  • actismedia
    Replied on September 6, 2020 at 8:20 AM

    Hello there, thanks for getting back to me.

    Well, something a little more appealing... maybe if both could be the same width, with a radius of say 33px, maybe blue background with white text?  

    Thank you kindly - Andrew :)

  • actismedia
    Replied on September 6, 2020 at 8:32 AM

    Also, I have 'back' and 'next' buttons to direct people to the previous/next page, however, I have conditions which take the user to a specific page.

    Is there a way to make the next button do nothing unless an option is selected?  If not, the user can merely click on next and end up with the wrong info.?

    I suspect that's a piece of JS?

  • Kenneth JotForm Support
    Replied on September 6, 2020 at 9:13 AM

    Hi there,

    After some customizations here is how the next button looks:

    1599397408 5f54de20a9e77 d1 Screenshot 10

    If that is acceptable, then insert these codes into your Inject Custom CSS Area: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    .form-pagebreak button{

    text-shadow: -1px -1px 0px #26a;

    box-shadow: 0px 1px 1px 0px #79b3ee;

    background: linear-gradient(to top, #00a0f0 0%, #0064f0 100%);

    }

    I would not suggest settings a condition to disable as it will most likely disable all next or back buttons, you may use SKIP PAGES to move to the next page or Hide fields to simulate that functionality: https://www.jotform.com/help/350-How-to-Skip-Pages-Using-Conditional-Logic

    Let us know if you have any further questions.

    Best.

  • actismedia
    Replied on September 6, 2020 at 9:22 AM

    Hi, thanks for this... I didn't make myself clear, sorry!

    I meant to style the two boxes... 1. REQUIRED M2 and 1. JOB CST IN £


  • Vanessa_T
    Replied on September 6, 2020 at 10:49 AM

    Please allow me some time to update the demo form for you. Will get back to you afterwards.

  • Vanessa_T
    Replied on September 6, 2020 at 11:19 AM

    I have updated my demo form here: https://form.jotform.com/202493176720959

    1599405536 5f54fde0bd658 01522 Screenshot 10

    If you like its look, kindly add the CSS below:

    ::placeholder {

    color: white;

    }

    input[type="number"].form-number-input {

    background-color: #79b3ee;

    color: white;

    border: 1px solid #79b3ee;

    border-radius: 33px;

    padding-left: 5px;

    outline: none;

    width: 140px !important;

    }

    How-to-Inject-Custom-CSS-Codes

  • actismedia
    Replied on September 7, 2020 at 4:25 AM

    Excellent!  Thank you very much.

    PS.  Is there a way I can have a £ as a default before the answer (where 1 Job Cost in £) is?

  • Kenneth JotForm Support
    Replied on September 7, 2020 at 6:10 AM

    Hi there,

    I checked the field and it seems that you have place the "symbol" as a placeholder:

    1599473395 5f5606f3d98f6 b1 Screenshot 10

    Has this been resolved.

    Best.