no element placeholders in element's Default

Using placeholders in defaults is a bit hit and miss, as it's a chicken & egg situation. You are setting a default of one element to the default of another element. Which may not have had its default set yet.

Better to derive what you need from something you know will work, like looking up a database field. How are you defaulting userdetails___shop_name?

-- hugh
 
But that's the placeholder your are using ...

In my case it's
return '{userdetails___shop_name}';

and the output is
{userdetails___shop_name}

So I'm confused as to what you are trying to do, if userdetails___shop_name is the display element itself?

OK, I just looked at your site, and I'm assuming this is the payment_vendor element. But you aren't defaulting shop_name to anything.

So I'm confused as to where shop_name is supposed to come from?

-- hugh
 
aha!!!!!! default should be the user's id!
I thought this comes with setting row id to -1 in the menu but there probably is another way. Is it some kind of {my->id} thing?
 
thanks.
so is there a way to make something like this work in the display text's default?
return '{userdetails___shop_name} = {$my->id}';
 
Last edited:
I should probalby as differently. I want to display the shop name (element userdetails___shop_nane) of the user with the id 1234
How could I do this?
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top