Giter VIP home page Giter VIP logo

Comments (8)

nittygrittytechy avatar nittygrittytechy commented on September 28, 2024 1

YES!!!!!!!!!!!!!!!! It worked, oh, thank you so much!
Doin a jig, lol!
image

from grist-widget.

paulfitz avatar paulfitz commented on September 28, 2024

For this widget we used the Vue.js framework which you can learn about here https://vuejs.org/ including how to use its templating support. I'm not personally very familiar with it. I don't think you can use the {{...}} syntax directly in attributes, I think you want something like <a v-bind:href="an expression">...</a>, where your expression would translate to perhaps 'https://uslawpros.com/client-payments/?invoice=' + invoice.Number + '&client=' + business if I understand the setup correctly.

from grist-widget.

nittygrittytechy avatar nittygrittytechy commented on September 28, 2024

Well, I added the code but now the invoice does not show at all, hmm.
<div class="footer"> <p class="PayInfo">Please click on the button below to make your payment today.</p> <div class="PayBTN"><a v-bind:href="https://uslawpros.com/client-payments/?invoice=' + invoice.Number + '&client=' + business"><button>Pay Now</button></a></div> <div class="thanks"> Thank you! </div> </div>
image

from grist-widget.

dsagal avatar dsagal commented on September 28, 2024

I spot a missing single quote right after the double-quote here: <a v-bind:href="https://uslawpros.com/client-payments/?invoice=' +. Could that be the problem? If not, there may be errors in the browser console that guide you to the issue.

from grist-widget.

nittygrittytechy avatar nittygrittytechy commented on September 28, 2024

Well, it didn't work. I got a different error. I am not familiar with Vue.js.

Thank you for trying to help me :)

from grist-widget.

paulfitz avatar paulfitz commented on September 28, 2024

Hi @nittygrittytechy, I made a quick test here: https://docs.getgrist.com/2QgqetjmqKhF/Invoicing-copy, code I used was:

<a v-bind:href="'https://example.com/example/?' + new URLSearchParams({invoice: invoice.Number, client: invoice.Client?.Name||''}).toString()">Pay Now</a>

(used URLSearchParams so there wouldn't be a problem if client name has spaces in it or other special characters).
I think business isn't available in the part of the template you're changing.

from grist-widget.

nittygrittytechy avatar nittygrittytechy commented on September 28, 2024

Yes, that was the error I was receiving and because I am not familiar with Vue.js, I didn't know how to fix it at that moment. Okay, let me give this a try. Oh my goodness, thank you again for helping me.

Over the top!!! Can I leave a review for you?

from grist-widget.

paulfitz avatar paulfitz commented on September 28, 2024

Can I leave a review for you?

Hmm, our newsletters mention these sites for reviewing Grist https://support.getgrist.com/newsletters/2022-03/#help-spread-the-word - random mentions on reddit or hacker news or twitter are also appreciated :)

from grist-widget.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.