Hi there!
As the title says, I’m looking to write some code that checks a certain collection that stores what certain fees are for registration, and then replaces a certain word or part of a text element I have in a terms and conditions sort of section.
This way, when the fees change, it automatically updates anywhere on the site that I put this information (I’ll add the code to any page that the information is on).
The collection items wouldn’t be changing, only the fees field.
I have two fee items, “Individual Fee” and “Family Fee”
Perhaps in the text box, it could be set to replace a certain word or phrase such as {IND_FEE} and {FAM_FEE}.
For example, my text is something like:
“I agree to pay the fee of {IND_FEE} per term ({FAM_FEE} for families).”
I’ve tried a bunch of different ways, but to no success. The error I kept getting was that the dataset did not exist. I don’t have the code I was using as I deleted it and moved on, but can try to recreate it if necessary.
I’m fairly new to this language and this whole API system but have a basic understanding of what’s going on.
Would love any ideas around this.
Thanks!
I can send more information as required