• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to fill 'default value' with var from script

How to fill 'default value' with var from script 12 years 2 months ago #21877

  • marcovis
  • marcovis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Dear all,

For hours now I'm trying to get this to work:
  • I've created a script on a form in Properties | Scripts | PHP Scripts; this script returns a value in a variable ( $value );
  • When I put in the script itself:
    echo $value;
    the correct value shows on top of the form;

Now, I would like to put the $value variable in the default value of a form field. I've tried the following:
//<code>
echo $value;
//</code>

... but this didn't work. What should I do to make this work?
Basically, I want to pre-fill some form fields default values with values from a table.

Kind regards,
Marco Visser
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!