Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom fields per signer not showing up in document #138

Open
8vius opened this issue Nov 29, 2018 · 0 comments
Open

Custom fields per signer not showing up in document #138

8vius opened this issue Nov 29, 2018 · 0 comments

Comments

@8vius
Copy link

8vius commented Nov 29, 2018

I have 2 signers on my document template that each have some custom fields, I duplicate them because there seems to be no way to have common custom fields since DocuSign asks that you specify a signer for your fields
screen shot 2018-11-29 at 5 13 27 pm
screen shot 2018-11-29 at 5 13 34 pm

So I add these custom fields to each signer in my envelope request, but they don't show up in the document when I go view it.

custom_fields = {
      host_address: "Testing Host Address",
      host_civil_status: "Host Civil Status",
      host_id_number: "123HOSTID",
      host_tax_number: "123HOSTTAX",
      nomad_address: "Testing Nomad Address",
      nomad_civil_status: "Nomad Civil Status",
      nomad_id_number: "123NOMADID",
      nomad_tax_number: "123NOMADTAX",
      property_address: booking.listing.property.full_address,
      property_deposit: (booking.deposit * booking.price).to_s,
      property_description: "Property Description",
      property_start_date: booking.start_date.strftime("%d/%m/%Y"),
      property_end_date: booking.end_date.strftime("%d/%m/%Y"),
      property_stay_length: distance_of_time_in_words(booking.start_date, booking.end_date),
      property_montly_rent: booking.price.to_s,

    }
    @envelope = client.create_envelope_from_template(
      status: 'sent',
      email: {
        subject: "The test email subject envelope",
        body: "Envelope body content here"
      },
      template_id: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      signers: [
        {
          embedded: true,
          name: booking.listing.user.name,
          email: booking.listing.user.email,
          role_name: 'Host',
          custom_fields: custom_fields
        },
        {
          embedded: true,
          name: booking.user.name,
          email: booking.user.email,
          role_name: 'Nomad',
          custom_fields: custom_fields
        }
      ]
    )
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

No branches or pull requests

1 participant