Search code examples
yiiyii-extensionsyii-booster

Remove red * in required fields Yiibooster


I'm using yiibooster and it is really good extension for the frontend, my issues now is that I want to remove the red * that is rendered in the required fields but maintaining the required validator in the model, anyone knows how to do this????

thankss


Solution

  • If you want to achieve what you want easily, I suggest you to do like below, which is simplest way(in my view point):

    Just try to find * selector(the ID or CLASS) name.(using a firebug or any inspector) Then just do like below in your document.ready():

    $(SELECTOR).remove();
    

    NOTES

    • THE * MIGHT BE CREATED DYNAMICALLY
    • THIS IS JUST AN SUGGESTION, YOU CAN FIND ANY OTHER POSSIBLE WAYS SUCH AS CHANGING THE CSS CLASS IN ORDER TO DO DISPLAY:NONE OR SOURCE MODIFICATION