Radiogroups / Radiobuttons / Required Field
Monday, April 11, 2016 at 07:30amI'm thinking there MIGHT be a bug but wanted to post here before claiming that entirely. I'm using the latest .NET SDK.
Simple example is this:
1 document, 1 signer , 1 signature.
Prior to the signature there are two radio buttons. They are group so one *or* the other can be selected but not both. I want the user to make a specific selection before the signature will be completed.
The code is as such:
//this ensures only one field as a value
bool a = srf.Name.Contains("radiobox1");
Field field = FieldBuilder.RadioButton(srf.Group.ToString())
.WithId(srf.Name.Trim(new char[] { '[', ']' }))
.WithSize(srf.Width, srf.Height)
.OnPage(srf.PageNumber)
.AtPosition(srf.X, srf.Y)
.WithValue(a.ToString())
.WithValidation(new FieldValidator() { Required = true })
.Build();
The result of the above code gives me visually what I want on the document:
but when I try to proceed and choose either button and sign it says the form is incomplete when I click the signature. I've tried several variations to this but without success. If I give no value to the radio buttons the error changes to "a required field must have a value". If I try to give both fields a value the same issue happens. If I try to give them both a value immediately than validation passes without them making a selection which is just as bad. I've tried saying WithValue("true") versus true (boolean) all without the desired effect.
Read through all this including the larger example on the button of the first page but it doesn't have validation setup on it.
http://docs.e-signlive.com/doku.php?id=esl:e-signlive_guide_fields
http://docs.e-signlive.com/doku.php?id=esl:e-signlive_guide-field_validators
Thoughts or advice? Is there an option I'm missing that I need to add into the Validations "options" to make it work as intended or do I need to setup validation on the radiogroup1 itself somehow?
Reply to: Radiogroups / Radiobuttons / Required Field
Monday, April 11, 2016 at 11:15amReply to: Radiogroups / Radiobuttons / Required Field
Monday, April 11, 2016 at 11:36amReply to: Radiogroups / Radiobuttons / Required Field
Monday, April 11, 2016 at 11:53amReply to: Radiogroups / Radiobuttons / Required Field
Monday, April 11, 2016 at 01:36pmReply to: Radiogroups / Radiobuttons / Required Field
Tuesday, April 12, 2016 at 05:09amReply to: Radiogroups / Radiobuttons / Required Field
Tuesday, April 12, 2016 at 07:29amReply to: Radiogroups / Radiobuttons / Required Field
Tuesday, April 12, 2016 at 07:54am