Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@jbennett
Copy link
Contributor

This would always replace all instances of NEW_RECORD. With this change you you can have diferent placeholders at different levels. For instance When building a survey with pages and fields you can have something like:

<form data-controller=“nested-form” data-nested-form-new-record-placeholder-value=“NEW_PAGE_RECORD”>
  <!— … ->

  <div data-controller=“nested-form”  data-nested-form-new-record-placeholder-value=“NEW_FIELD_RECORD”>
    <!— … —>
  </div>
</form>

This would be an alternative solution to #150

This would always replace all instances of NEW_RECORD. With this change you you can have diferent placeholders at different levels. For instance When building a survey with pages and fields you can have something like:

```erb
<form data-controller=“nested-form” data-nested-form-new-record-placeholder-value=“NEW_PAGE_RECORD”>
  <!— … ->

  <div data-controller=“nested-form”  data-nested-form-new-record-placeholder-value=“NEW_FIELD_RECORD”>
    <!— … —>
  </div>
</form>
```
@oboxodo
Copy link

oboxodo commented Sep 11, 2025

@jbennett I'm needing this nested support too and this looks like an elegant solution. Any idea on the failing tests?
@guillaumebriday-pa @guillaumebriday would you be open to merge this and make a release?

@oboxodo
Copy link

oboxodo commented Sep 11, 2025

@jbennett @guillaumebriday-pa I submitted an alternative test that doesn't trigger the weird console errors here: jbennett#1

Hope fully that would suffice to land this feature in the main repo and get a new release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.