OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

HTTPSend Sending Labels instead of Data Values on Radio Button Groups #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I’m running into an issue where it appears that the HTTP Send is pulling the 
field label instead of the field value when running through the HTTP Send 
Feature.

And I’m running into a deadline that I’m sure is clouding my mind a bit…

My HTTP Send request shows:
HTTP Send Request Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Created: 2014-06-17 11:18:39 CDT
Completed: 2014-06-17 11:31:46 CDT
Attempts: 5 out of 5
Retry delay: 3 minute(s)
Last attempted: 2014-06-17 11:31:46 CDT
Purpose/reason: Benefits Open Enrollment
HTTP Status must be: 200
Response match type: Must contain
Response match value: successful
Method: POST
URL: https://api.mywebapp.net/gw/yozons
Name-value params
Login=xxxxxxxxxxxxx&Password=xxxxxxxxxxxxx&TransType=hrbenefitsenrollment&PlanYe
ar=2015&SSN=555446666&DateEffective=&Medical=%2451.52&Dental=%242.71&Vision=%240
.90

But the values I’ve set for Medical (mapping to HR_Benefits.MedicalOptions). 
The radio button I selected (BCBSPPOEmpOnly) has a value of this field when 
selected of “PPO (A)|EE”, not the $51.52 in the post string above. $51.52 
is the label of the radio button…???

The same is true for the other two radio button group – based fields  (Dental 
and Vision).

This is generating 500 errors on my API page since the expected data is a text 
value not a dollar amount.

What am I overlooking???

Original issue reported on code.google.com by guyinho...@gmail.com on 17 Jun 2014 at 10:38

GoogleCodeExporter commented 9 years ago
The only current workaround we can think of for now is to use a field spec to 
transfer the data instead of a document field, with notation like 
${document.radiobuttongroupname}

That should send the data held by the group.

It seems to be a bug that it sends the label instead of the data value.  We 
will investigate for both radio buttons and checkboxes.

Original comment by yoz...@gmail.com on 18 Jun 2014 at 4:19

GoogleCodeExporter commented 9 years ago
The consensus is that sending the label makes no sense. We don't send the label 
for any other type of field.  Only a drop down has something like this with 
respect to the option or value, but even that doesn't ever send the drop down's 
label.

We will issue a patch release today that just returns the checkbox or radio 
button group's value.

Original comment by yoz...@gmail.com on 18 Jun 2014 at 10:23

GoogleCodeExporter commented 9 years ago
Released in patch release 14.6.7_p0618. 

Original comment by yoz...@gmail.com on 19 Jun 2014 at 3:32