%h3{:style => 'text-align:center;'} %a{:href => '/'} GroupDocs Ruby SDK Samples \- Sample32 .samplecontent{:style => 'padding:10px;'} %span.description %i This sample will show how to create signature form, publish it and configure notification when it was signed using Ruby SDK %br/ %br/ / %span.documentation %a{:href => '/docs/sample32.html'} Builtin documentation for this sample %br/ %br/ %p You entered: %p ClientID = #{(defined? userId) ? userId : ''} %p PrivateKey = #{(defined? privateKey) ? privateKey : ''} %p Email = #{(defined? email) ? email : ''} %p Callback = #{(defined? callback) ? callback : ''} %p %font{:color => 'red'} #{(defined? err) ? err : ''} %br/ #requestForm{:style => 'padding:20px; border:1px solid black;'} %p Enter data for request and press "Make request" button %form{:action => '/sample32', :enctype => 'multipart/form-data', :method => 'post'} %label{:for => 'clientId'} GroupDocs ClientID %br/ %input{:type=>'text', :name=>'clientId'} %br/ %label{:for => 'privateKey'} GroupDocs PrivateKey %br/ %input{:type=>'text', :name=>'privateKey'} %br/ %div.guid_radio %input{:type=>'radio', :name=>'source', :value=>'form'} Form GUID %br/ %input{:type=>'radio', :name=>'source', :value=>'template', :checked=>'checked'} Template GUID %br/ %div.guid_field{:style=>'display:none;'} %label{:for=>'form', :id=>'form'} Form GUID %br/ %input{:type=>'text', :name=>'formGuid'} %div.guid_field %label{:for=>'template'} Template GUID %br/ %input{:type=>'text', :name=>'templateGuid'} %label{:for=>'email'} Email for notification %br/ %input{:type=>'text', :name=>'email'} %br/ %label{:for=>'callback'} Callback URL %span.optional (Optional) %br/ %font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample32/callback) %input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callbackUrl'} %br/ %label{:for => 'basePath'} Base Path %span{:class => 'optional'} (Optional) %br/ %input{:type=>'text', :name=>'basePath', :id=>'basePath'} %br/ %br/ %input{:type => 'submit', :value => 'Publish form'} %br/ %a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file %br/ %br/ %div{:style => 'padding:20px; border:1px solid black;'} %p Results: #{(defined? iframe) ? iframe : ''} = partial :_others_samples %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'} :javascript $(function($){ $('.guid_radio input').change(function(){ var elementIndex = $(this).parent().children('input').index($(this)); $('.guid_field').hide(); $('.guid_field').eq(elementIndex).show(); }); });