Hi there, i’ve got a filter set up in a left nav page for the contacts object. Instead of the filters appearing as a drop down list they are appearing as a list of elements down the left hand nav (see image). for the life of me i can’t figure out why this is going on, i’m trying to modify the version of this functionality (which works) found here (https://github.com/skuidify/SamplePages/blob/master/pages/Mobile_Filter) but cannot seem to make it work…
has anyone come across this before? Would definitely appreciate some help on this one :S
here is the page.
Stakeholder Category
Stakeholder Category
Stakeholder Engagement
Here is the key item. Your contact picker model needs some adjustment. You currently have it configured to retrieve 100 rows of existing data. This creates 100 entries in your sidebar, and means that if you change value in one of those rows, you might be saving data in addition to filtering your main panel.
You need to set the model properties as follows.
- Load Data on Page load - OFF
- Create Dafault Row if none found - ON
- Number of Rows returned - 1
Then you need to make sure that the user never has the chance to save that model. Make all components read only…
You are close. So close.
I was going to add:
“And in the advanced model settings, you can set Prevent user from leaving this page if model has unsaved changes - OFF, so your users don’t get unsaved changes warnings.”
But apparently that setting isn’t available on mobile models.
Hi guys, thanks for the help - but this is still not working… it’s showing a single row now, however no drop down list appearing in that row.
I’m trying to filter the list of contacts on the available record types for that object. I have another model, StakeholderPicker, that has a condition on the RecordType object to only return sObject type Contact, and active record types.
My condition on the Contacts model is filterable as RecordType.Name and this field is the return field value in the stakeholder picker model. Is this condition (on the contact model) the only thing that references the Stakeholder picker model?
Also, in the button where i set and activate the model i use the condition in the Contact model and what does the Value field do? I have this as {{RecordType.Name}} at the moment and this is defined in the condition on the Contacts model.
Again, page is below.
Stakeholder Category
Stakeholder Category
Stakeholder Engagement
Ok. I think you are trying to get a dropdown list of record types available for a particular contact. And then filter the list of contacts on the basis of the selected record type. In this case, don’t build your model on the record type object. Build it on the Contact object. (Creating an default row, Loading one row and not ever saving the record). Add the record type selection field from contact to your page. It will appear as multiple values.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.