Hello all,
I've been trying for awhile to create a list button that will allow the creation of multiple child records of the same parent record on one Visualforce page (rather than clicking save and new over and over). I need to pass the parent ID and assign a record type, and I'd prefer that happen without the user having to do anything other than click the button on the related list. My visualforce page works in that if I preview it, I can see each field in a column, and the "add" link is working to add new rows. However, the parent ID isn't getting passed, I can't figure out how to assign the record type ID, and the "x" link to delete a row isn't working.
I've posted on the forum about this multiple times, but have not received many replies.
This would be a huge help for the organizations I work with, and I'd be willing to pay for a few hours of someone's time to help me get the code right. Any one interested in helping me out?Thank you your help. Below are the fields used for this button and record type. The required fields are marked with an asterisk. Please let me know if you need any other information!SessionRecord Type, RecordTypeId(0120f000001QfBhAAK)*Session Number, NameMaster-Detail Relationship with Groups and Classes:Group_Class__c*Date: Start_Date__cDate: End_Date__cNumber: Length_of_Class_es__cNumber: Number_of_Sessions_Held__cLookup to Accounts: Class_Location__cLookup to Users: Facilitator__c*Lookup to Contacts: Youth_Leader__cLookup to Users: Co_Facilitator__cMulti-Select Picklist: Works_Wonders_Module_s__c*Checkbox: Peer_Component_Offered__cNumber: Length_of_Peer_Component_Minutes__cCheckbox: Educational_Component_Offered__cNumber:Length_of_Education_Component_Minutes__cLong Text Area: Anything_to_pay_closer_attention_to__cLong Text Area: Anything_you_want_to_learn_more_about__cLong Text Area: Any_Youth_Feedback__cLong Text Area: Specific_Example_of_Challenge__cLong Text Area: What_happened_you_felt_good_about__cLong Text Area: Which_exercises__cClass EnrollmentsClass Enrollments Number, Name*Record Type, RecordTypeId(01IG00000028DLM)Master-Detail with Session, Session__c*Master-Detail with Contact, Youth_Name__c*Lookup with Works_Wonders__c: Works_Wonders_Youth_Name__c*Picklist: Attendance__c*Text Area: If_Youth_Did_Not_Attend_Explain_Why__cCurrency: Incentive_Paid__cText Area: Participation_Note__cCheckbox: Youth_Has_Completed_This_Group__c