question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to control the id and name attributes of the Date input items

See original GitHub issue

Currently the id and name are auto generated in the macro:

    "id": params.id + "-" + item.name,
    "name": params.name + "-" + item.name

I need more control over these. For example, let say I am capturing a DoB of a person:

<input type="number" name="person[dob].day" />
<input type="number" name="person[dob].month" />
<input type="number" name="person[dob].year" />

Would it be possible to include this capability?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
36degreescommented, Sep 7, 2018

@davidjamesstone just to let you know that we’ve now merged #984 which addresses #909 by renaming the name argument to namePrefix – it’ll be part of the next release of Frontend, which we expect to be v2.0.

Thanks again for raising this and helping to improve Frontend! 👍

1reaction
36degreescommented, Jul 16, 2018

Thanks, I will keep an eye out for a documentation PR 👍 🎉

I’m going to split this into two issues so that we can track each one separately:

I’ve tried my best to summarise each issue, but please do feel free to add anything I might have missed.

I think that covers everything discussed in this issue, so I’m going to close this now. Please do re-open it or file another issue if you need to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="date"> - HTML: HyperText Markup Language
The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any , which...
Read more >
Forms in HTML documents - W3C
A control's "control name" is given by its name attribute. The scope of the name attribute for a control within a FORM element...
Read more >
Difference between id and name attributes in HTML
The name attribute is used when sending data in a form submission. Different controls respond differently. For example, you may have several ...
Read more >
Product data specification - Google Merchant Center Help
Click the name of an attribute to view full details, including more ... need to let Google know about all the updates to...
Read more >
HTML Id Attributes - GeeksforGeeks
Use of ID attributes in JavaScript: In JavaScript, the id attribute is used to manipulate the text, if you want to make changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found