{"id":103,"date":"2011-05-02T09:44:00","date_gmt":"2011-05-02T04:14:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=103"},"modified":"2011-05-02T09:44:00","modified_gmt":"2011-05-02T04:14:00","slug":"how-to-pass-field-values-to-form","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2011\/05\/how-to-pass-field-values-to-form\/","title":{"rendered":"How to pass field values to Form"},"content":{"rendered":"<p>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.<\/p>\n<p>To open the new record form<\/p>\n<p>https:\/\/<serverUrl>\/main.aspx?etn=<entity type code>&#038;pagetype=entityrecord<\/p>\n<p>Pass field values as query string parameters<\/p>\n<p>http:\/\/<serverUrl>\/main.aspx?etn=<entity type code>&#038;pagetype=entityrecord&#038;extraqs=<fieldschemaname>=<value><\/p>\n<p>If you need to pass the multiple field values then just append those field-value combination string at the end with the \u201c&#038;\u201d as a separator.<\/p>\n<p>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 \u201c%\u201d character before the ASCII code. <\/p>\n<p><a href=\"http:\/\/2.bp.blogspot.com\/-kfVAEjNk1_Y\/Tb6oCNy1P9I\/AAAAAAAAAw4\/k32r_tHA3-M\/s1600\/ImgPrefix.png\"><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-kfVAEjNk1_Y\/Tb6oCNy1P9I\/AAAAAAAAAw4\/k32r_tHA3-M\/s400\/ImgPrefix.png\" border=\"0\" alt=\"\"><\/a><br \/>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.<\/p>\n<p>(Blue is the actual field name and its related attribute name like for lookup there are 2 names and brown is the actual value)<br \/><a href=\"http:\/\/3.bp.blogspot.com\/-3lATHnwpaos\/Tb6oQPY2CgI\/AAAAAAAAAxA\/a9Y2F4SGh8U\/s1600\/imgdesk.png\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-3lATHnwpaos\/Tb6oQPY2CgI\/AAAAAAAAAxA\/a9Y2F4SGh8U\/s400\/imgdesk.png\" border=\"0\" alt=\"\"><\/a><br \/>Below is the total URL with all above field values passed to the new contact form,<br \/>&#8220;http:\/\/<serverName>\/main.aspx?etn=contact&#038;pagetype=entityrecord&#038;extraqs=birthdate%3D01%2F14%2F1984%26salutation%3DMr%26gendercode%3d1%26creditonhold%3d1%26defaultpricelevelid%3dD0B854EC-1E1A-E011-8D2B-D8D3855B354B%26defaultpricelevelidname%3dComputer%20Stationary%26parentcustomerid%3D%7b0D98B15F-0565-E011-8D90-1CC1DEE8CEB7%7d%26parentcustomeridname%3DInogic%26parentcustomeridtype%3Daccount&#8221;<\/p>\n<p>Hope this helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 https:\/\/\/main.aspx?etn=&#038;pagetype=entityrecord Pass field values as query string parameters http:\/\/\/main.aspx?etn=&#038;pagetype=entityrecord&#038;extraqs== If you need to pass the multiple field values\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2011\/05\/how-to-pass-field-values-to-form\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[391,1301],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","tag-crm-2011-urls","tag-pass-fields-value-to-form"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}