在一个文本框中显示多个值

时间:2018-02-15 20:02:10

标签: docusignapi

我可以在一个文本框中显示两个值的组合,这些值是通过API作为单独的标签发送的吗?数据标签可以使用FirstName + LastName吗? 即: 我将名字和姓氏作为两个标签发送:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<table class="table ">
					<thead>
					<tr>
						<th>&nbsp;</th>
						<th>EVENTO</th>
						<th>Entro DATA</th>
						<th>RESPONSABILE</th>
						<th>COMMENTI</th>
						<th>Action</th>
					</tr>
					</thead>
					<tbody>
						<tr class="edRow1">
							<td><input type="checkbox" name="idData[]" /></td>
							<td>Inoltdo gara</td>
							<td class="fielda1">16-Jun</td>
							<td class="fieldb1">Arianna</td>
							<td class="fieldc1">Risposta entdo il 23/6</td>
							<td class="inf_act1"><a href="#"><i class="fa fa-upload"></i>Upload</a>
							<a class="btn btn-default pull-right mleft5 btn-icon edit_row" data-id="1"><i class="fa fa-pencil-square-o"></i>Edit</a>
							</td>
						</tr>
						
						<tr class="edRow2">
							<td><input type="checkbox" name="idData[]" /></td>
							<td>Inoltdo gara</td>
							<td class="fielda2">16-Jun</td>
							<td class="fieldb2">Arianna</td>
							<td class="fieldc2">Risposta entdo il 23/6</td>
							<td class="inf_act2"><a href="#"><i class="fa fa-upload"></i>Upload</a>
							<a class="btn btn-default pull-right mleft5 btn-icon edit_row" data-id="2"><i class="fa fa-pencil-square-o"></i>Edit</a>
							</td>
						</tr>
						
						<tr class="edRow3">
							<td><input type="checkbox" name="idData[]" /></td>
							<td>Inoltdo gara</td>
							<td class="fielda3">16-Jun</td>
							<td class="fieldb3">Arianna</td>
							<td class="fieldc3">Risposta entdo il 23/6</td>
							<td class="inf_act3"><a href="#"><i class="fa fa-upload"></i>Upload</a>
							<a class="btn btn-default pull-right mleft5 btn-icon edit_row" data-id="3"><i class="fa fa-pencil-square-o"></i>Edit</a>
							</td>
						</tr>
						
						<tr class="edRow4">
							<td><input type="checkbox" name="idData[]" /></td>
							<td>Inoltdo gara</td>
							<td class="fielda4">16-Jun</td>
							<td class="fieldb4">Arianna</td>
							<td class="fieldc4">Risposta entdo il 23/6</td>
							<td class="inf_act4"><a href="#"><i class="fa fa-upload"></i>Upload</a>
							<a class="btn btn-default pull-right mleft5 btn-icon edit_row" data-id="4"><i class="fa fa-pencil-square-o"></i>Edit</a>
							</td>
						</tr>
						
						<tr class="edRow5">
							<td><input type="checkbox" name="idData[]" /></td>
							<td>Inoltdo gara</td>
							<td class="fielda5">16-Jun</td>
							<td class="fieldb5">Arianna</td>
							<td class="fieldc5">Risposta entdo il 23/6</td>
							<td class="inf_act5"><a href="#"><i class="fa fa-upload"></i>Upload</a>
							<a class="btn btn-default pull-right mleft5 btn-icon edit_row" data-id="5"><i class="fa fa-pencil-square-o"></i>Edit</a>
							</td>
						</tr>
					</tbody>
				</table>

2 个答案:

答案 0 :(得分:2)

如果您指定了两个单独的文本选项卡(如您在发布的代码中显示的那样),则每个选项卡的值将显示在DocuSign签名UI中自己的文本框中。

如果您希望名字和姓氏都显示在UI的同一文本框中,则需要连接这些值以指定单个标签的值。

new Text()
{
   TabLabel = "Name",
   Value = model.FirstName + " " + model.LastName
}

答案 1 :(得分:2)

是的,数据标签可以有类似FirstName + LastName的东西。但是当你需要在dataLabel中填充值时,它需要来自你的代码。您需要将数据模型中的值连接到此数据标签。

new Text()
{
   TabLabel = "FirstName+LastName",
   Value = model.FirstName + " " + model.LastName
}