There’s a portion of .js we’re wanting to add a couple more partners to. I’m just wondering how to test adding the partners to the list below and then checking it works with our Calculator here > Home for Life Plan Quick Calculator | Homewise
The code below picks up domain from UTM parameters and then displays the partner name into 1st line of text on 1st page of calculator (see link above). It seems straightforward but don’t want to mess it up!
\n\n\n\n\n\n\n\n\nvar partnerLookup = [{\n url: ‘[https://www.rightmove.co.uk’,\](https://www.rightmove.co.uk’,)n name: ‘Rightmove’\n}, {\n url: ‘[https://www.prospect.co.uk’,\](https://www.prospect.co.uk’,)n name: ‘Prospect’\n}, {\n url: ‘[https://www.wardsofkent.co.uk’,\](https://www.wardsofkent.co.uk’,)n name: ‘Wards’\n}, {\n url: ‘[https://www.pittis.co.uk’,\](https://www.pittis.co.uk’,)n name: ‘Pittis’\n}, {\n url: ‘[https://www.douglasallen.co.uk’,\](https://www.douglasallen.co.uk’,)n name: ‘Douglas Allen’\n}, {\n url: ‘[https://www.cubittandwest.co.uk’,\](https://www.cubittandwest.co.uk’,)n name: ‘Cubitt & West’\n}, {\n url: ‘[https://www.bradleys-estate-agents.co.uk’,\](https://www.bradleys-estate-agents.co.uk’,)n name: ‘Bradleys’\n}, {\n url: ‘[https://www.andrewsonline.co.uk’,\](https://www.andrewsonline.co.uk’,)n name: ‘Andrews’\n}, {\n url: ‘[https://www.connells.co.uk’,\](https://www.connells.co.uk’,)n name: ‘Connells’\n}, {\n url: ‘[https://rightmove.co.uk’,\](https://rightmove.co.uk’,)n name: ‘Rightmove’\n}, {\n url: ‘[https://prospect.co.uk’,\](https://prospect.co.uk’,)n name: ‘Prospect’\n}, {\n url: ‘[https://wardsofkent.co.uk’,\](https://wardsofkent.co.uk’,)n name: ‘Wards’\n}, {\n url: ‘[https://pittis.co.uk’,\](https://pittis.co.uk’,)n name: ‘Pittis’\n}, {\n url: ‘[https://douglasallen.co.uk’,\](https://douglasallen.co.uk’,)n name: ‘Douglas Allen’\n}, {\n url: ‘[https://cubittandwest.co.uk’,\](https://cubittandwest.co.uk’,)n name: ‘Cubitt & West’\n}, {\n url: ‘[https://bradleys-estate-agents.co.uk’,\](https://bradleys-estate-agents.co.uk’,)n name: ‘Bradleys’\n}, {\n url: ‘[https://andrewsonline.co.uk’,\](https://andrewsonline.co.uk’,)n name: ‘Andrews’\n}, {\n url: ‘[https://connells.co.uk’,\](https://connells.co.uk’,)n name: ‘Connells’\n}];
Hi, @Chappers
Thanks for the question and for including your code example. I’d like to invite some of our community members to the converstaion — hey @Mike_Eastwood @albertsg @alyssamwilie @Indra, can you share how you might go about testing something similar to what @Chappers is describing?
Thank you! — Jaycee
Hi @Chappers
Not sure if I fully understand what you want, so here’s a guess:
You could prepopulate a form - no javascript required - if you use a GET parameter.
For example https://www.homewise.co.uk/calculator/**?partner=righmove** would set the value of a form field named “partner” in a Hubspot Form.
Feel free to expand on your question.
Mike
p.s. thanks for the mention @Jaycee_Lewis
Thanks @Mike_Eastwood - I’ve worked this out now. Turns out a space had crept in just before the word budget (i.e. in the line starting > type: ’ budget…'). That space stopped it displaying on a Hubspot page. Simple as that!
On a wider question that maybe yourself, @Jaycee_Lewis , @albertsg , @alyssamwilie , @Indra could also help with.
Could any of you summarise the likely developer resource that you’d anticpate a website like ours might need? I’m trying to put together a ‘straw man’ of developer time and resource our site may need going forward.