{"id":341051,"date":"2022-06-26T07:55:15","date_gmt":"2022-06-26T07:55:15","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=341051"},"modified":"2024-06-18T12:13:23","modified_gmt":"2024-06-18T12:13:23","slug":"add-custom-validation-rule-in-ui-component-form-field","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/","title":{"rendered":"Add custom validation rule in UI component form field"},"content":{"rendered":"\n<p>Hello Dear Friends!!!<br><br>In this article, we are going to learn how we can add custom validation in a field in UI component form.<br><\/p>\n\n\n\n<p>First of all, we will create our custom validation js file. Here, I have created <em>wk-storeurl-validation.js<\/em> file inside the <em>&lt;magento-root-dir&gt;\/app\/code\/Vendor\/Module\/view\/adminhtml\/web\/js\/<\/em> directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">require(\n    &#091;\n        &#039;Magento_Ui\/js\/lib\/validation\/validator&#039;,\n        &#039;jquery&#039;,\n        &#039;mage\/translate&#039;\n], function(validator, $){\n        validator.addRule(\n            &#039;wk-storeurl-validation&#039;,\n            function (value) {\n                return !(\/&#091;^a-z^A-Z^0-9\\.\\-]\/g.test(value));\n            },\n            $.mage.__(&#039;Store Url can contain dash (-) and alphanumric values only.&#039;)\n        );\n});<\/pre>\n\n\n\n<p>Now, we will add this file to the head section of the layout file. Here, I have added my js file in <em>routename_customform_edit.xml <\/em>file inside the <em>&lt;magento-root-dir&gt;\/app\/code\/Vendor\/Module\/view\/adminhtml\/layout\/ <\/em>directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n\n&lt;page xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; layout=&quot;admin-2columns-left&quot;  xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd&quot;&gt;\n    &lt;update handle=&quot;styles&quot;\/&gt;\n    &lt;head&gt;\n        &lt;link src=&quot;Vendor_Module::js\/wk-storeurl-validation.js&quot;\/&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;referenceContainer name=&quot;content&quot;&gt;\n            &lt;uiComponent name=&quot;tenants_form&quot;\/&gt;\n        &lt;\/referenceContainer&gt;\n    &lt;\/body&gt;\n&lt;\/page&gt;<\/pre>\n\n\n\n<p>Now, we will add our custom validation rule in the form field in the UI component form. Here, I have added my custom validation rule named &#8220;<strong>wk-storeurl-validation<\/strong>&#8221; in the <em>store_url<\/em> field in the <em>tenants_form.xml <\/em>file as follows:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;field name=&quot;store_url&quot;&gt;\n            &lt;argument name=&quot;data&quot; xsi:type=&quot;array&quot;&gt;\n                &lt;item name=&quot;config&quot; xsi:type=&quot;array&quot;&gt;\n                    &lt;item name=&quot;dataType&quot; xsi:type=&quot;string&quot;&gt;text&lt;\/item&gt;\n                    &lt;item name=&quot;label&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Store URL&lt;\/item&gt;\n                    &lt;item name=&quot;formElement&quot; xsi:type=&quot;string&quot;&gt;input&lt;\/item&gt;\n                    &lt;item name=&quot;dataScope&quot; xsi:type=&quot;string&quot;&gt;store_url&lt;\/item&gt;\n                    &lt;item name=&quot;required&quot; xsi:type=&quot;boolean&quot;&gt;true&lt;\/item&gt;\n                    &lt;item name=&quot;notice&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;\n                       Enter store URL name. For example: xyzshop\n                    &lt;\/item&gt;\n                    &lt;item name=&quot;validation&quot; xsi:type=&quot;array&quot;&gt;\n                        &lt;item name=&quot;required-entry&quot; xsi:type=&quot;boolean&quot;&gt;true&lt;\/item&gt;\n                        &lt;strong&gt;&lt;item name=&quot;wk-storeurl-validation&quot; xsi:type=&quot;boolean&quot;&gt;true&lt;\/item&gt;&lt;\/strong&gt;\n                        &lt;item name=&quot;validate-no-html-tags&quot; xsi:type=&quot;boolean&quot;&gt;true&lt;\/item&gt;\n                    &lt;\/item&gt;\n                &lt;\/item&gt;\n            &lt;\/argument&gt;\n        &lt;\/field&gt;<\/pre>\n\n\n\n<p>Now, when we input the wrong value in the form field <em>store_url<\/em> and save the form, then we will get an error as in the following image:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"613\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png\" alt=\"download-5\" class=\"wp-image-341052\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-300x153.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-250x128.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-768x393.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5.png 1203w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Hope this will be helpful.<br>Thanks \ud83d\ude42<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Dear Friends!!! In this article, we are going to learn how we can add custom validation in a field in UI component form. First of all, we will create our custom validation js file. Here, I have created wk-storeurl-validation.js file inside the &lt;magento-root-dir&gt;\/app\/code\/Vendor\/Module\/view\/adminhtml\/web\/js\/ directory. Now, we will add this file to the head section <a href=\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":249,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[12861,12863,12862,12864],"class_list":["post-341051","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-add-custom-validation-in-ui-component-form-field","tag-custom-validation-in-form-field-in-ui-component-form","tag-custom-validation-in-ui-component-form","tag-ui-component-form-validation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add custom validation rule in UI component form field - Webkul Blog<\/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:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add custom validation rule in UI component form field - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Hello Dear Friends!!! In this article, we are going to learn how we can add custom validation in a field in UI component form. First of all, we will create our custom validation js file. Here, I have created wk-storeurl-validation.js file inside the &lt;magento-root-dir&gt;\/app\/code\/Vendor\/Module\/view\/adminhtml\/web\/js\/ directory. Now, we will add this file to the head section [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-26T07:55:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-18T12:13:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png\" \/>\n<meta name=\"author\" content=\"Khushboo Sahu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khushboo Sahu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\"},\"author\":{\"name\":\"Khushboo Sahu\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f94b8f53397bf85810761d76c98fadca\"},\"headline\":\"Add custom validation rule in UI component form field\",\"datePublished\":\"2022-06-26T07:55:15+00:00\",\"dateModified\":\"2024-06-18T12:13:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\"},\"wordCount\":179,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png\",\"keywords\":[\"add custom validation in ui component form field\",\"custom validation in form field in ui component form\",\"custom validation in ui component form\",\"ui component form validation\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\",\"url\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\",\"name\":\"Add custom validation rule in UI component form field - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png\",\"datePublished\":\"2022-06-26T07:55:15+00:00\",\"dateModified\":\"2024-06-18T12:13:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5.png\",\"width\":1203,\"height\":615,\"caption\":\"download-5\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add custom validation rule in UI component form field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f94b8f53397bf85810761d76c98fadca\",\"name\":\"Khushboo Sahu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cabac965df656d114e6bf340df07518c990eda03bb09265dbd5c17f1097adaae?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cabac965df656d114e6bf340df07518c990eda03bb09265dbd5c17f1097adaae?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Khushboo Sahu\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/khushboo-sahu062\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add custom validation rule in UI component form field - Webkul Blog","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:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/","og_locale":"en_US","og_type":"article","og_title":"Add custom validation rule in UI component form field - Webkul Blog","og_description":"Hello Dear Friends!!! In this article, we are going to learn how we can add custom validation in a field in UI component form. First of all, we will create our custom validation js file. Here, I have created wk-storeurl-validation.js file inside the &lt;magento-root-dir&gt;\/app\/code\/Vendor\/Module\/view\/adminhtml\/web\/js\/ directory. Now, we will add this file to the head section [...]","og_url":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-06-26T07:55:15+00:00","article_modified_time":"2024-06-18T12:13:23+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png","type":"","width":"","height":""}],"author":"Khushboo Sahu","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Khushboo Sahu","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/"},"author":{"name":"Khushboo Sahu","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f94b8f53397bf85810761d76c98fadca"},"headline":"Add custom validation rule in UI component form field","datePublished":"2022-06-26T07:55:15+00:00","dateModified":"2024-06-18T12:13:23+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/"},"wordCount":179,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png","keywords":["add custom validation in ui component form field","custom validation in form field in ui component form","custom validation in ui component form","ui component form validation"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/","url":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/","name":"Add custom validation rule in UI component form field - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5-1200x613.png","datePublished":"2022-06-26T07:55:15+00:00","dateModified":"2024-06-18T12:13:23+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/download-5.png","width":1203,"height":615,"caption":"download-5"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/add-custom-validation-rule-in-ui-component-form-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add custom validation rule in UI component form field"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f94b8f53397bf85810761d76c98fadca","name":"Khushboo Sahu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cabac965df656d114e6bf340df07518c990eda03bb09265dbd5c17f1097adaae?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cabac965df656d114e6bf340df07518c990eda03bb09265dbd5c17f1097adaae?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Khushboo Sahu"},"url":"https:\/\/webkul.com\/blog\/author\/khushboo-sahu062\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/341051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/249"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=341051"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/341051\/revisions"}],"predecessor-version":[{"id":448548,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/341051\/revisions\/448548"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=341051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=341051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=341051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}