nehme | Posts: 153

Radio Button field Injection

0 votes
Hello, What is the value I will use to inject the text for a radio button inside a document in esignlive. Thanks, Nehme

Approved Answer
Duo_Liang | Posts: 3776

Reply to: Radio Button field Injection

0 votes
Dear nehme, Glad to assist you with your project. Always feel free to come back and raise questions if you have any other issues related to OneSpan Sign. :) And I really enjoyed working with you in past few weeks! Take case, Duo

Duo_Liang | Posts: 3776

Reply to: Radio Button field Injection

0 votes
Hi nehme, Here's a code snippet for usage of radio field:
.WithField(FieldBuilder.RadioButton("group_1")
                    .WithId("group_1_button_2")
                    //.WithValue("X")
                    .OnPage(0)
                    .AtPosition(500, 500)
                    .WithSize(10, 10)
                )
So if you are talking about the .WithValue() function, no matter what value you put here, after the approval is confirmed, the value will be replaced by a "X". The only thing you can configure with this function is, with .WithValue("X"), this radio will be pre-selected. Please tell me if I misunderstood your point and hope this could help you! Duo

nehme | Posts: 153

Reply to: Radio Button field Injection

0 votes
Hi Duo, Yes this is what I am looking for. But when I am injecting the radio button with "x", while signing the document I am getting this message: Warning! The Form is incomplete Please let me know what is the problem. Thanks, Nehme

Duo_Liang | Posts: 3776

Reply to: Radio Button field Injection

0 votes
Hi nehme, Sorry, first I want to correct that, if you want to pre-select the radio button, you can use a value to "X"(upper case) or simply use true in SDK:
.WithValue(true)/.WithValue("X")
And if you are still encountering the issue, can you share a screenshot of the warning and tell me more about how to reproduce this? Duo

Duo_Liang | Posts: 3776

Reply to: Radio Button field Injection

0 votes

Hi nehme, In previous post, there was once a case that has the same warning with you. In that case, I believe it's because of the id of the radio. Can you change another name convention and try it again? Duo


nehme | Posts: 153

Reply to: Radio Button field Injection

0 votes
Hello Duo, Only when text ejecting for a radio button, this problems shows up. If I text inject the radio button with empty value "", it is working but I have manually to click the radio button. Any solution? Thanks Nehme

nehme | Posts: 153

Reply to: Radio Button field Injection

0 votes
Dear Duo, I believe today is the closing day for my issues in eSignLive :). I have solved the problem. The issue was our users they add only one radio button inside the template for the default group, so your system is expecting while using radio button to be min 2 radio buttons for the same group. So When we added the second radio button, the issue is solved. by setting the value for the radio button to be "X". Have a great Day! Thanks Nehme

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off