How to pass field values to Form

By | May 2, 2011

Sometimes you have requirement to open the particular type of new record with some default values already filled. This can be achieved by passing the field values to the query string.

To open the new record form


Pass field values as query string parameters


If you need to pass the multiple field values then just append those field-value combination string at the end with the “&” as a separator.

Note while generating the URL you need to take care of some characters. Instead of directly placing the character you need to use the ASCII code for that character. Below table will provide you with the list of mostly used characters while creating URL. You should prefix the “%” character before the ASCII code.

Now below example will give you an idea on how to generate URL for different type of fields, the name of the field (i.e. schema name) must be specified in lower case only.

(Blue is the actual field name and its related attribute name like for lookup there are 2 names and brown is the actual value)

Below is the total URL with all above field values passed to the new contact form,

Hope this helps!

Leave a Reply

Your email address will not be published. Required fields are marked *