Skip to main content

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?
20 Antworten
  1. 12. Feb. 2020, 18:10
    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!

    Session

    Record Type, RecordTypeId(0120f000001QfBhAAK)*

    Session Number, Name

    Master-Detail Relationship with Groups and Classes:

    Group_Class__c*

    Date: Start_Date__c

    Date: End_Date__c

    Number: Length_of_Class_es__c

    Number: Number_of_Sessions_Held__c

    Lookup to Accounts: Class_Location__c

    Lookup to Users: Facilitator__c*

    Lookup to Contacts: Youth_Leader__c

    Lookup to Users: Co_Facilitator__c

    Multi-Select Picklist: Works_Wonders_Module_s__c*

    Checkbox: Peer_Component_Offered__c

    Number: Length_of_Peer_Component_Minutes__c

    Checkbox: Educational_Component_Offered__c

    Number:

    Length_of_Education_Component_Minutes__c

    Long Text Area: 

    Anything_to_pay_closer_attention_to__c

    Long Text Area: 

    Anything_you_want_to_learn_more_about__c

    Long Text Area: 

    Any_Youth_Feedback__c

    Long Text Area: Specific_Example_of_Challenge__c

    Long Text Area: What_happened_you_felt_good_about__c

    Long Text Area: Which_exercises__c

    Class Enrollments

    Class 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__c

    Currency: Incentive_Paid__c

    Text Area: Participation_Note__c

    Checkbox: Youth_Has_Completed_This_Group__c

     
0/9000