Comments (4)
I am also facing this issue at the moment.
Following is the way I tried to insert the editable merge fields -
custom_fields: [ { name: 'first_name', value: current_user.first_name.capitalize, editor: 'Engineer', required: true}, { name: 'email', value: current_user.email, editor: 'Engineer', required: true } ]
To this, I got the following error -
Server responded with code 400 Request URI: https://api.hellosign.com/v3/signature_request/create_embedded_with_template Message: {"error":{"error_msg":"Invalid custom field: 1","error_name":"bad_request"}}
I read the docs and the code to find no examples for this. Kindly respond back soon about this issue. If there is a workaround to this, please post here. Thank you.
from hellosign-ruby-sdk.
Hi,
Thanks for your request. We are getting this into our queue and will provide you with an update.
-Ronald
from hellosign-ruby-sdk.
Heya @ketan37dm - this should be ready to go now, as of v3.2.8 of the SDK, which I've just pushed here and to Rubygems.
You can now specify custom_fields as you have above, as an array of (Hash) objects.
Note that you must have custom_fields of the same name (API label) in the template you're using to send the request as well.
For an example reference, this is what I used to verify the fix:
res = client.send_signature_request_with_template(
:test_mode => 1,
:template_id => "bd925f9abf7edec3b8fb957aacfc605cfe9511ab",
:subject => 'Purchase Order',
:message => 'Glad we could come to an agreement.',
:signers => [
{
:email_address => '[email protected]',
:name => 'George',
:role => 'Client'
}
],
:custom_fields => [ { name: 'first_name', value: "someValue", editor: 'Client', required: true}, { name: 'email', value: "[email protected]", editor: 'Client', required: true } ]
)
puts res.data
from hellosign-ruby-sdk.
thank you @renderf0x @rmelencio I appreciate your quick response guys
from hellosign-ruby-sdk.
Related Issues (20)
- Bug: Error creation crashing in Client#prepare_files HOT 7
- Add notification to readme about change in returned data format in release 3.7.7 HOT 1
- Bug:
- OAuth Authorization from new users is not Returning a Response
- Set test_mode on the client
- Add POST /signature_request/release_hold/[:signature_request_id]
- Could you please add more usage examples in readme.md?
- Could you please share how could we control the rate limit? Right now request does not send the header information.
- Feature Request: Allow files to be in memory StringIO objects
- NoMethodError: undefined method `<<' for #<Hash:0x00007fdbaa5591b8> Did you mean? <
- SDK broke: ActiveModel::UnknownAttributeError (unknown attribute 'has_sms_auth' for Signature.): HOT 3
- Error sending signature request HOT 2
- Missing gem versions HOT 2
- Faraday deprecation warning HOT 2
- Faraday::Error (:multipart is not registered on Faraday::Request) HOT 3
- Publish 3.7.10 gem HOT 2
- form_field_groups is malformed when creating an embedded signature request
- Zip::Error when downloading SignatureRequest documents by calling signature_request_files HOT 3
- Add requester_email_address to unclaimed_draft_edit_and_resend endpoint HOT 1
- Add bulk send with template functionality
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hellosign-ruby-sdk.