Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

Form field settings as per substore

If you want any field required for one substore but not for another substore add a startup widget and do some tweak with field group in forms

example : if you have substore 'substoreA' and another substore 'substoreB' and in register form you want to add some field only for one substore than set the fieldgroup name as substore alias and than add the code , so when u open substoreA than on register form the hook checking the field settings fieldgroup is its substoreA than only field will be visible otherwise hidden


ms.app.addPosthook({entity: "ms.forms", command: "list"}, function (req, res, next) {
    var form = (res.data && res.data.data && res.data.data[0]) || (res.data && res.data[0]);
    if (ms.user && ms.user.store && ms.user.store == 'substoreA') {
        if (form.name == 'register') {
            form.fields.forEach(function (field) {
                if (field.settings.field_groups != 'substoreA') {
                    field.settings.hidden = 1;
                }
            })
        }
    }
    return next();
});
2021-11-24T08:49:01.645Z