Comments (8)
YES!!!!!!!!!!!!!!!! It worked, oh, thank you so much!
Doin a jig, lol!
from grist-widget.
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.
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>
from grist-widget.
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.
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.
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.
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.
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)
- Notepad widget should allow HTML export to another column
- Present the widgets from the readme HOT 1
- Markdown exits Edit mode and autosaves on lost focus HOT 1
- How to calculate properly - Custom Invoice HOT 10
- Custom Invoice CSS not showing on Print HOT 6
- Please HELP! Add Another section like Note HOT 9
- Adjust the Width of Columns on PDF view HOT 4
- Mixed Content Error when serving widgets over HTTPS HOT 1
- Add contribution guide
- renderhtml: "datetime is not defined" when using script with date HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grist-widget.