I have two forms, one for name and others personal information, and other with address fields.
I need a list from users to show the avatar, name, city and state. I did it perfectly following the demo link in http://demo.formidablepro.com/view-bugs , but I can´t do the selection by state links because the state fields are into a nested custom display.
That is how I did:
Form 1
name: Basic
Fields
name: userid
type: hidden user id
key: userid-basic
name: FirstName
type: single line text
default: [first_name]
key: firstname-basic
name: LastName
type: single line text
default: [last_name]
key: lastname-basic
name: uid
type: number
default: [user_id]
key: uid-basic
Form 2
name: Address
Fields
name: userid
type: hidden user id
key: userid-Address
name: state
type: dropdown
empty <selected>
AC
DF
SP
RJ
ES
PI
PA
PR
key: state-Address
name: zip
type: single line text
key: zip-Address
name: city
type: single line text
key: city-Address
name: uid
type: number
default: [user_id]
key: uid-Address
Custom Display 1
name: List all users
form: Basic
display format: All Entries
before content:
<table cellspacing=”1″ cellpadding=”2″ class=”" id=”myTable” width=”100%”>
<thead>
<tr>
<th class=”c1″>Avatar</th>
<th class=”c2″>Name</th>
<th class=”c3″>City</th>
<th class=”c4″>state</th>
</tr>
</thead>
Content:
<tr>
<td>[userid-basic show=avatar]</td>
<td>[firstname-basic] [lastname-basic]</td>
[display-frm-data id=43 uid=[uid-basic]]
</tr>
after content:
<tfoot>
<tr>
<th class=”c1″>Avatar</th>
<th class=”c2″>Name</th>
<th class=”c3″>City</th>
<th class=”c4″>state</th>
</tr>
</tfoot>
</table>
<script type=”text/javascript” src=”/wp-content/plugins/formidable/js/webtoolkit.sortabletable.js”></script>
<script type=”text/javascript”>
var t = new SortableTable(document.getElementById(‘myTable’), 100);
</script>
Custom Display 2
name: city and state
form: Address
display format: single entry
content:
<td>[city-Address]</td>
<td>[state-Address]</td>
where: uid id equal to [get-uid]
Page wordpress
[frm-search]
<div style=”clear:both”></div>
only by state:
<a href=”?state=AC”>AC</a> |
<a href=”?state=SP”>SP</a> |
<a href=”?state=RJ”>RJ</a> |
<a href=”?state=ES”>ES</a> |
<a href=”?state=PI”>PI</a> |
<a href=”?state=PA”>PA</a> |
<a href=”?state=PR”>PR</a>
[display-frm-data id=41 filter=1] // where 41 is Custom Display 1′s ID




October 8, 2012 at 1:06 pm
There isn't a way to filter this way unless the state field is in the form of the parent custom display.
October 9, 2012 at 2:41 pm
bad notice, but pacient, i will rebuild all my forms to mearging into one form only.
Tanks, any way.
Topic closed.