This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Standalone Form saves values different from Embed Form
Started 12 years ago by mjg234 | 2 posts |
-
I have added some logic to the processing of the form (post-functions.php) based on a few conditions.
If I view the form in Standalone mode, via the "View Form" option in the Admin Panel, the logic works properly.
If I view the form "live", via the Javascript option, the logic does NOT work properly.
At first, I thought the problem was in my added processing logic. Then I looked at the data, I see that the values that get stored are different, depending on which way I enter the data:
(1) If I use the "live/embedded" form, every value for element_4 gets saved as a 4 - regardless of what I choose.
(2) If I enter/process the form via the "View Form" option, the proper values (7, 9, 10) get saved.I have made 13 test entries now - 7 in Standalone and 6 in Embedded - and the results are consistent across all 13 records.
When I View Page Source for the form, it shows:
<li id="li_4" class="column_2"> <label class="description" for="element_4">What is your rate of pay? <span id="required_4" class="required">*</span></label> <div> <select class="element select medium" id="element_4" name="element_4"> <option value="" selected="selected"></option> <option value="4" >I am salaried</option> <option value="5" >Over $14 per hour</option> <option value="6" >$12 to $14 per hour</option> <option value="7" >$10 to $12 per hour</option> <option value="8" >$8.50 to $10 per hour</option> <option value="9" >Under $8.50 per hour</option> <option value="10" >I am Unemployed</option> </select> </div> </li>
I am using version 3.1.
Posted 12 years ago # -
Hmm.. I'll need to check directly into your code for this.
Can you contact us directly and let us know the following please:- the URL to your standalone form
- the URL to the page where you embed the form
- the modified "post-functions.php" filehttp://www.appnitro.com/contact
MachForm Founder
Posted 12 years ago #
Reply
You must log in to post.