1283 Posts
Bucklash
6 years ago
7
Topic

Hi folks

I have latest Form Field from seblod form and list pack (2 plug-ins).

The Form shows in my content view.

Nice!

However, when I want to pass values, by using show options, it does not render. 

Not nice!

I have latest version of form field (pkg_cck_field_seblod_1.5.1)

Any ideas?

Position Variations have no impact on this behaviour.

If I remove all other fields and just have the form field it is still the same.

Template choice is not a factor either

Thanks :)

Get a VIP membership
4229 Posts
Kadministrator
6 years ago
0
Level 1

So you are saying form doesn't use live values from parent or what is exactly the problem?

1283 Posts
Bucklash
6 years ago
1
Level 1

Hi Klas

Sorry for delay.

I have attached screenshots that show the form "Note" which is based on User Note, rendering when live values are not even an option i.e "Show Options = Hide"

It then shows the form not rendering when live values can be an option i.e. "Show Options = Following Options"

I don't have anywhere else to compare this behaviour with and play 'spot the difference' so hard to see what I might have done etc

I have tried on Slicked Minima, Minima and One. Same outcome.

Latest Form Field - 1.5.1

Latest Seblod - 3.15.0

Latest Joomla - 3.8.3

Same thing happens when trying the Seb Comments App.

Any ideas where to look?

Jon

1283 Posts
Bucklash
6 years ago
0
Level 2

Just tried adding a form to the content view on another site.

Same thing.

When "Show Options" = "-1" then the form will render in the content view.

When "Show Options" = "Anything Else" then the form will NOT render in the content view.


Two different sites.

So far:

Site A: Joomla 3.8.3, Seblod 3.15, CCK Form Field 1.5.1

Site B: Joomla 3.8, Seblod 3.14.1, CCK Form Field 1.5.1


hmmm..

4229 Posts
Kadministrator
6 years ago
3
Level 1

I had a look at the code and it seems options to pass values from parent are not implemented in the form field, probably that id why form is disabled when you try to use them.

1283 Posts
Bucklash
6 years ago
2
Level 2

Hi Klas

Thanks for that. It never occurred to me it wasn't a feature as it is an option on field.

1

Is it worth me making a feature request or is it not available for a specific reason do you think?

2

Doing a bit of experimenting:

In content view, I passed a value to uri using beforerender field

$jInput = JFactory::getApplication()->input;
// Category ID
$jInput->set("art_catid", $fields['art_catid']->value);

Then in Site Form View of the Nested form, I tried to grab that value.

a) by Joomla!'s method

$jInput = JFactory::getApplication()->input;
var_dump($jInputb->get('art_catid','','STR'));

and also by 

b) In live settings of 'nested' form, I tried to pull those values in using URL Variable: art_catid

-----

Should this be possible? It looks like it is not

So to summarise: To pass values to a form you..... 

1

Need to assign any values to uri before you navigate to the page.

Assigning values using beforerender and before the other fields get rendered does not help.

2

Pass values using SD Live CCK field so long as the form is not nested, in other words, so long as it is not within the content view as SD live CCK is unable to do this.

4229 Posts
Kadministrator
6 years ago
1
Level 3

1 should work but it might be that it won't due to execution order.. 

I made a new version of the plugin that has this feature working, if you are a subscriber you could problably get it for testing, try contacting Seblod over contact form.

1283 Posts
Bucklash
6 years ago
0
Level 4

Hi Klas

Huge thanks for that.

I have contacted Seblod and will report back have something to tell

Get a Book for SEBLOD