Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
87 views

How do I use a nested form, for an object association, but display values from both the associated object, and the object association itself? Excerpt of the nested form: <%= form_with model: @...
jmc's user avatar
  • 11
1 vote
0 answers
840 views

I am trying to build a form that shows a suggestion of serial numbers (data is fetched via an API and is happening correctly). I am able to get a suggestion of all serial numbers, however I dont ...
Pulkit Raina's user avatar
0 votes
1 answer
97 views

I have 4 models: Business, Store, Product and StoreProduct Business has many stores and products I want a store to have many products and products should belong to many stores. When selecting products ...
Tolase Adegbite's user avatar
0 votes
1 answer
51 views

I have a has_many :through association setup in a Rails 7 app. I'm using the ActsAsBookable gem to handle bookings for events. An Event has_many EventExtras that can be added from the booking, and a ...
stooshie45's user avatar
0 votes
0 answers
58 views

I have the three classes Book, Nonfiction, Author and I want to make it possible that Book and Author get initialized by calling the Nonfiction's form. But unfortunately, the textfield doesn't show up....
cd4user's user avatar
  • 83
1 vote
1 answer
36 views

I have the 3 classes Product, ProductVariant, Component and I want to apply a triple nested form in order to make it possible to set the values for Product, ProductVariant and Component when calling ...
cd4user's user avatar
  • 83
0 votes
0 answers
65 views

I want to create a subform in Microsoft Access where a dropdown contains values filtered by a value from the parent form. The data model looks like this: A facility can have multiple buildings ...
MightyRavendark's user avatar
0 votes
2 answers
68 views

I have the classes Person and Fingerprint and I want to work with nested forms in order to fill Fingerprint's attributes. The implementation is as follows: class Person < ApplicationRecord ...
cd4user's user avatar
  • 83
1 vote
2 answers
150 views

I have a strange workflow whereby a child record is created first and then I want it associated with the parent through a nested form. Here is an example using rspec: Here are the models: class ...
Jeremy Thomas's user avatar
1 vote
1 answer
1k views

I'm actually trying to generate reactive forms from data. I would like to create a formGroup and its respective nested forms from json data and also auto generate html form using templates. You will ...
agarnier22's user avatar
2 votes
1 answer
464 views

I've recently started using Hotwire for a project I'm working on. Have been following this tutorial on GoRails. Currently having some issues with adding / updating records in a dynamic form. I have ...
Anders's user avatar
  • 2,951
0 votes
1 answer
53 views

Context I have created a form which is taking user data like their name, phone no, address... For the address I'm using an api that is fetching states to a drop-down and also the cities after ...
Jinit Vyas's user avatar
0 votes
1 answer
80 views

I'm having a problem with something that seems like it should use the rails magic on this form. I have an articles controller that has a nested resource comments. I have the comment form on the ...
Todd Perkins's user avatar
0 votes
1 answer
981 views

I have found this guide to implement sub-forms in Angular. My parent form holding all the child forms looks like this: export class ParentFormComponent implements OnInit { valueArray: Array<...
Crunchystick's user avatar
1 vote
0 answers
160 views

In my rails 7 app with devise set up i got the registration#new view modified to appear in my design. My user model also has_one :account which stores information i dont want to be in the user model ...
GabrielTheCoder's user avatar
3 votes
2 answers
255 views

i have a relation like a teacher can have at max three students. I have a association like teacher has many students and student belongs to teacher. so while updating a teacher record im showing a ...
John's user avatar
  • 1,333
-1 votes
2 answers
155 views

I want to create an Invoice and the regarding InvoiceItems at the same time. While Invoice has_many :invoice_items and an InvoiceItem belongs_to :invoice. How do I perform such action in Rails 7 so ...
GabrielTheCoder's user avatar
0 votes
1 answer
104 views

I'm working on a rails CMS project and I am trying to create from the admin dashboard, a quotes section where users can add a section_quote with title, image and five quotes with their authors(5 ...
Kandi Peter's user avatar
0 votes
1 answer
118 views

I have a user who can have many reservations and each reservation can have many tables. It saves the user and the reservations, but not the tables. Tables can have special requirements, like ...
sam's user avatar
  • 263
0 votes
1 answer
406 views

I'm facing this issue and after digging, I can't seem to find a solution for this. I'm trying to create a user and his meet_infos on a nested form, but in the params, I always end up with "...
Amine BEN TALEB's user avatar
0 votes
1 answer
42 views

I have models Software and Version. A Software has_many Version's and has_one :first_version class Software < ApplicationRecord has_many :versions has_one :first_version, -> { order(...
pinkfloyd90's user avatar
0 votes
3 answers
2k views

So I've been going through a restructure build of an entire site, and part of that involved switching from Formidable Forms to Gravity Forms. We did this because we wanted to use the Nested Form ...
lbeecher's user avatar
0 votes
1 answer
627 views

I have associations as follows: variant has_may colours and colours has_many sizes. I am using active admin gem for managing backend activities. My models looks like, class Variant < ...
Hemant Patil's user avatar
1 vote
0 answers
2k views

I am trying to develop a template for custom Forms. The goal ist, that the Form gets build dynamically from a XML-File (this far I just create the Input-Elements in the App-Component for testing ...
artuk's user avatar
  • 11
0 votes
1 answer
148 views

I have a 'User', 'Task' and 'Comment' model in my rails 6 app. The User model is defined using devise for authentication. User has_many comments and has_many tasks and Task has_many comments. I have a ...
navpahul551's user avatar
0 votes
1 answer
109 views

I want to reference Controls pointed in yellow colour in below image ,can any one help me how can i get hold of that reference so that I can push real time data.
sai krishna reddy's user avatar
0 votes
0 answers
112 views

I have a Message form, with basic fields: class MessageForm(forms.ModelForm): class Meta: model = Message fields = [ 'message_introduction', '...
Rene Chan's user avatar
  • 1,003
1 vote
1 answer
1k views

I have this error when I try to render the form AvisType: The form's view data is expected to be a "App\Entity\DTO\DocumentDTO", but it is a "array". You can avoid this error by ...
Zabon's user avatar
  • 265
0 votes
1 answer
211 views

I'm using Angular Material and trying to display the errors. The problem is that I can't connect to the actual value. This is my component.ts code: myForm!: FormGroup; constructor(private fb: ...
lucas's user avatar
  • 11
-2 votes
1 answer
3k views

Stackblitz code Angular, Reactive Forms, Material UI, I have nested forms setup in split components. I have some fake data setup with InMemoryWebAPI, some of the properties are coming up as undefined ...
AlisonDev's user avatar
1 vote
0 answers
351 views

I need some help and I'm getting nuts by doing this. i have a parentForm calls disclosureForm: In this disclosureForm there could be an amount of n subforms called household. The Amount of subforms ...
Jimmy Page's user avatar
0 votes
0 answers
386 views

I am having an issue with my update method in my recipes controller where I cannot create a new category. Category is a nested resource within recipes. This is my update method def update if ...
Lindsay Kinn's user avatar
1 vote
1 answer
1k views

I slightly modified and extended the example for building nested forms to implement the second level of nesting. Everything is displayed perfectly on the form. Data for the person is displayed at both ...
Kaisar Barlybay's user avatar
0 votes
1 answer
142 views

I built an app with enums and all works perfectly. However, on a different app where I have nested forms I'm having a small problem. Even though everything seems to work fine in the backend, on my ...
Lazy Cougar's user avatar
0 votes
1 answer
573 views

Working on a project with a has_many_through join table with an additional attribute on the join table. My models are wines, foods, and the join table is pairings. I am not getting all of the ...
Maddog64's user avatar
0 votes
1 answer
104 views

On my form on has_one association the fields do not appear for a singular form. <%= f.fields_for :pack_social_media_sur_mesure, @commande.pack_social_media_sur_mesure do |ff| %> remains empty i ...
Yi W0o's user avatar
  • 38
0 votes
1 answer
67 views

Here is my models: class Drama < ApplicationRecord has_many :reviews has_many :users, :through => :reviews validates :name, uniqueness: true accepts_nested_attributes_for :reviews ...
Katie Le's user avatar
0 votes
3 answers
72 views

Here personaldetails belongs_to user and the relation given is has_many which is wrong.I want to convert the has_many relation to has_one relation i.e. User has_one personaldetails. When I change the ...
mamadgi aishwarya's user avatar
0 votes
2 answers
2k views

I need to create a Training, then add Attendances with nested form fields (cocoon) in a Rails 6 app. Here is the situation: The models are the following: Training model class Training < ...
don_Bigote's user avatar
0 votes
1 answer
379 views

The nested form works great when creating new records. However when I edit the record, it creates duplicate child items even if I do not mean to add new items. How do I prevent it from creating new ...
gabydi106's user avatar
0 votes
0 answers
151 views

Problem Statement: I need to get the input data of all the fields in either Container Component or a Form Component. Details: There are 4 to 5 different form Components, each using some common fields ...
Ahmed's user avatar
  • 3,290
0 votes
1 answer
158 views

I have Product model with price field and product_prices nested fields. I would validate the presence at least one of two and I would reject the presence of nested fields if price field is not blank. ...
Gigi's user avatar
  • 27
1 vote
0 answers
254 views

I currently have an error with writing UpdateView for double nested forms. My architecture is comprised of one template containing one form and two formsets. There's a large form for publisher. ...
jloh's user avatar
  • 11
0 votes
0 answers
353 views

I have a problem with getting changes from child component in nested angular form, this form is a dynamic form, which can be added new element. I will post a part of my code <div *ngFor="let ...
user1938143's user avatar
  • 1,204
0 votes
1 answer
167 views

I am trying to make a player character generator. I have a form that hopefully will allow me to attach skills with their values to a character sheet model. I made models like this: class ...
MrNexiol's user avatar
1 vote
0 answers
37 views

I am struggling how to submit multiple the same forms in one page. I have 3 model classes: Group_attribut Attribute Attribut_items I create this form: from django import forms from .models import ...
user3564823's user avatar
0 votes
1 answer
2k views

the error is: Could not determine access type for property "offerOrders" in class "App\Form\OrderType": Neither the property "offerOrders" nor one of the methods "...
Maxime Pinto's user avatar
1 vote
0 answers
78 views

I am able to submit form, but parameters of image is missing. Since, it's a nested form not able to get where I went wrong. user.rb class User < ApplicationRecord has_one :identification, ...
susie's user avatar
  • 193
0 votes
1 answer
291 views

<?php class ThreadType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, ...
Axel Briche's user avatar
1 vote
0 answers
295 views

I have a form with cocoon including nesting fields and I get the following when updating here is my schema create_table "tournament_standings", force: :cascade do |t| t.integer "...
Ben Bagley's user avatar

1
2 3 4 5
40