This topic contains 4 replies, has 0 voices, and was last updated by k_dunc 8 years, 6 months ago.
-
AuthorPosts
-
April 26, 2016 at 12:37 pm #23702
srussellHow do I set an association of Custom Contact form to Entity type? For example, I want to see one contact form if the entity is a Customer, and a different contact form if it's a Partner. This would need to work with multi-relationship entities, but when I create or go to a contact from a Partner record, I want to use the Partner Contact form.
This is a cached copy. Click here to see the original post. -
April 26, 2016 at 2:07 pm #23703
carl.billingsIf its even possible it would be a scripted event. Since contacts can be attached in multiple places i think the system might not be able to handle this
-
April 26, 2016 at 5:28 pm #23704
k_duncHi srussell, I've done something similar, but as carl.billings points out, one Contact can relate to a number of entity records.
Anyway, in a nutshell, here's what we did for one client: We created a Custom Record and an associated Custom Form.
The first field was email address (as that's what we decided was our 'unique key').
Upon a Contact entering their email address, we use a Client Script with a Field Changed Function to then take the email address entered and perform a search. In this client's particular circumstance, a given Contact could have any number of 'roles' and as such we needed to follow some business rules to ascertain the form to redirect this person to.
Finally, we use a "nlapiSetFieldValue('customform', 1);" call to redirect the user to the desired form. In so doing, we also help them out a bit by prepopulating certain fields for them too.Hope that's the sort of thing you're after.
-
April 26, 2016 at 7:00 pm #23705
srussellThanks for the responses. I had a feeling it would require scripting. I tried to use Workflow to set the custom form field but it didn't work. Fortunately, this is merely one of those nice-to-have things – not worth the scripting effort. k_dunc, it sounds you were solving for a more complex issue than what I was looking into. In this case it would've just been a convenience to show internal reps a simplified form for Partner contacts.
-
April 26, 2016 at 7:31 pm #23706
k_duncDepending on how complex you really want to get (which I'm thinking you're not looking at anything OTT), to do this via a script is quite simple if you want to give it a go. Happy to help if you need it. It should only be a handful of lines perhaps.
-
AuthorPosts
You must be logged in to reply to this topic.