9 years ago
3
Topic

Hi Sebloders, 

I allowed a user group to add content of a certain content type from front end, and it works very nice,  thanks to seblod.

However, I want to forbid links in fields. For exemple, I have a description field. Users can fill it with whatever they want, except url.

How can I filter content of the fields ?

Thanks

Get a Book for SEBLOD
9 years ago
1
Level 1

Hello MVDI,

you can make your controls in the even "BeforeStore" and check with some regex in you field and remove unwanted tag.


Best regards.

Lionel

9 years ago
0
Level 2

Hello,

thank you for this reply. Can you just explain me how I can "catch" or trigger this event ? Where should I put code ?

thanks, 

mvdi

9 years ago
0
Level 1

Hi MVDI,

you can access to differents events with the product "Code pack".

You just have to put a field code "BeforeStore" in your form.

Then by following the tutorial below, you will be able to change value of any field before they will be stored.


Best regards.

Lionel

Get a Book for SEBLOD