This topic is locked

Input radio Tag

2/4/2011 3:59:51 PM
PHPRunner General questions
A
albertomaffei author

Hello,
I'm new and I'm in PHPRunner a doubt.

I am using the template London.

On the Register page I put a 2 options for the user to register.
I put the HTML below:

<input type="radio" name="sex" value=m> Male

<input type="radio" name="sex" value=f> Female
When I go to events, I can not get the value of these options.
How do I do?
Thanks.

Sergey Kornilov admin 2/4/2011

Check this article for more info on adding custom fields to the form:

http://xlinesoft.com/phprunner/docs/add_custom_field_to_form.htm

A
albertomaffei author 2/5/2011

Hi, Thanks for your feedback.

But I can not get the field value.

I went to the Visual Editor page and clicked Miscellaneous Menu, then click Insert HTML.

In The frame appeared put the code below:
<table>

<tr>

<td> test 1 </ td>

<td> <input type=radio name=test id=test value=1> </ td>

</ Tr>

<tr>

<td> test 2 </ td>

<td> <input type=radio name=test id=test value=2> </ td>

</ Tr>

</ Table>
After that I went to Events page and added the code below into Javascript OnLoad event:
this.on ('beforeSave', function (formObj, fieldControlsArr, pageObj) {
var val = $ ("# test"). val ();
formObj.baseParams ['test'] = val;
});
Then I went to AfterSuccessfulRegistration and put the code below:

echo "The value chosen is =". $ _REQUEST ["Test"];
I clicked on Build and View in Web Browser
In the Browser, I clicked record and put out the information below and click enter:

Name: test

E-mail: teste@test.com

Password: test1234

Option: Test 1
Should have appeared to Successful Register page stating that the record was made, (it happened). But the line "The value is chosen =" came in white.
How do I get this value?

Sergey Kornilov admin 2/7/2011

I recommend to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.