Hi!

I have attached the feeds field to my Content type but the thing is that, in my case the feed URL should be optional.

Is this possible to set from admin?

If not, then what do I have to change in code to make the field optional?

This does not to do the trick since it still tries to validate the blank value.

//  public function sourceForm($source_config) {
'#required' => FALSE,

Thanks,

Comments

mareks’s picture

Guess I can't really fool it and say that the blank field is valid coz' then it tries to fetch the data from that blank URL :)

So... what are my option?

ShawnNYC’s picture

I'm working on something related. My semi-solution was to add a field to the form function that gave a default value for the form's URL field.

technikh’s picture

megachriz’s picture

Component: Feeds News » Code
Issue summary: View changes
Status: Active » Closed (duplicate)