{"id":163,"date":"2009-07-03T09:00:00","date_gmt":"2009-07-03T09:00:00","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=163"},"modified":"2009-07-03T09:00:00","modified_gmt":"2009-07-03T09:00:00","slug":"split-standard-field-in-parts-with-autotab-functionality-too","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/","title":{"rendered":"Split Standard field in Parts..with AutoTab functionality too&#8230;"},"content":{"rendered":"<\/p>\n<p><strong>For example:<\/strong> In <strong>CRM<\/strong> if you want to save <strong>mobile number,<\/strong> what you will do is, you will create a <strong>field<\/strong> for saving <strong>value<\/strong> of the <strong>mobile number<\/strong>. Now on an <strong>entry screen<\/strong> we can add this <strong>field<\/strong> in order to <strong>enter<\/strong> and <strong>save<\/strong> the value. The value will be saved in the <strong>mobile number field<\/strong> at the back-end without any problem. Now suppose on <strong>screen<\/strong> you want this <strong>field<\/strong> to appear as <strong>splitted in three different parts<\/strong> as shown below.<\/p>\n<p><\/p>\n<p><a href=\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s1600-h\/untitled.JPG\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" id=\"BLOGGER_PHOTO_ID_5354157888192808562\" style=\"DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 278px; CURSOR: hand; HEIGHT: 103px; TEXT-ALIGN: center\" alt=\"\" src=\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG\" border=\"0\" \/><\/a><br \/>So in this case, how will you create the <strong>fields<\/strong> for <strong>mobile number<\/strong> and <strong>save<\/strong> the values? One thing we can do here is we can <strong>grab<\/strong> the <strong>data part<\/strong> for this particular <strong>field<\/strong> on <strong>entry screen<\/strong> from <strong>custom content onload event<\/strong>. Now replace this <strong>data part<\/strong> by the <strong>custom created<\/strong> simple <strong>HTML<\/strong> <strong>fields<\/strong> as shown above. Now, standard <strong>save button<\/strong> will not work and we need to write our <strong>routine<\/strong> on <strong>onclick<\/strong> event of the <strong>save button<\/strong>. Here when user clicks on <strong>save button<\/strong> we need to collect the values from the above created <strong>3 custom html fields<\/strong> and <strong>combine<\/strong> them to get an entire <strong>mobile number<\/strong> that can be saved in mobile number field at back-end and then you can submit the page to save the value.<\/p>\n<p>Suppose, you want to <strong>navigate<\/strong> through these <strong>three parts of the mobile number field<\/strong> by using <strong>Tab<\/strong> and <strong>Shift+Tab<\/strong> buttons then you can make use of the following function on your client side code.<\/p>\n<p><em>function HandleOnKeyUpTabNextFocus(ctlstart, max, ctlNext)<br \/>{<br \/>var lcobj=new String(ctlstart.value);<\/p>\n<p>if(lcobj.length==max &amp;&amp; (event.keyCode!=16 event.keyCode!=9))<br \/>{<br \/>ctlNext.focus();<br \/>}<br \/>if(event.keyCode==16 event.keyCode==9)<br \/>{<br \/>ctlstart.focus();<br \/>ctlstart.select();<br \/>}<br \/>}<\/em><\/p>\n<p>You just need to call this function on <strong>OnKeyUp<\/strong> event of your <strong>HTML field<\/strong>. Here the first parameter <strong>ctl start<\/strong> will be the current field that can be referred by using keyword <strong>this<\/strong>, second parameter is <strong>max<\/strong> which is <strong>maximum length<\/strong> and third parameter is <strong>ctlNext<\/strong> which will be the <strong>name of field<\/strong> to which we want to move to after pressing <strong>Tab<\/strong> button. Here if the contents of the field exceeds the <strong>maximum length<\/strong> set above the <strong>cursor<\/strong> will automatically move to <strong>next field<\/strong>.<\/p>\n<p><marquee width=\"80%\"><b>If you find this useful, Please drop us a mail on <a href=\"mailto:crm@greytrix.com\">crm@greytrix.com<\/a>. <\/b><\/marquee><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For example: In CRM if you want to save mobile number, what you will do is, you will create a field for saving value of the mobile number. Now on an entry screen we can add this field in order to enter and save the value. The value will be saved in the mobile number\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1138],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-field"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"For example: In CRM if you want to save mobile number, what you will do is, you will create a field for saving value of the mobile number. Now on an entry screen we can add this field in order to enter and save the value. The value will be saved in the mobile number\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2009-07-03T09:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\",\"name\":\"Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG\",\"datePublished\":\"2009-07-03T09:00:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage\",\"url\":\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG\",\"contentUrl\":\"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Split Standard field in Parts..with AutoTab functionality too&#8230;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/","og_locale":"en_US","og_type":"article","og_title":"Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components","og_description":"For example: In CRM if you want to save mobile number, what you will do is, you will create a field for saving value of the mobile number. Now on an entry screen we can add this field in order to enter and save the value. The value will be saved in the mobile number\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2009-07-03T09:00:00+00:00","og_image":[{"url":"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/","name":"Split Standard field in Parts..with AutoTab functionality too... - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage"},"thumbnailUrl":"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG","datePublished":"2009-07-03T09:00:00+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#primaryimage","url":"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG","contentUrl":"http:\/\/1.bp.blogspot.com\/_A6_b0zkYeSY\/Sk3KO1UWhnI\/AAAAAAAAAdI\/orYLjQItJik\/s400\/untitled.JPG"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2009\/07\/03\/split-standard-field-in-parts-with-autotab-functionality-too\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Split Standard field in Parts..with AutoTab functionality too&#8230;"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}