PHP Classes

Setinputvalue for linked fields

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  Setinputvalue for linked fields  >  (Un) Subscribe thread alerts  
Subject:Setinputvalue for linked fields
Summary:Cannot seem to use setinputvalue
Messages:3
Author:Shumit Rehman
Date:2008-06-11 11:20:20
Update:2008-06-13 22:08:33
 

  1. Setinputvalue for linked fields   Reply   Report abuse  
Picture of Shumit Rehman Shumit Rehman - 2008-06-11 11:20:20
Hi Manuel

Again thanks for your class and replies.

I am trying out your linked form example and find I can set a default VALUE for the country field when defining the form eg

AdddInput(array(
"ID"=>"country",
"VALUE"=>"pt",...

but I cannot set a value later on with

SetInputValue ("country","pt")

which gives the following error

VALUE is not a changeable form country input property.

What am I doing wrong? thanks,Shumit

  2. Re: Setinputvalue for linked fields   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-06-13 20:37:37 - In reply to message 1 from Shumit Rehman
Currently this plug-in does not support changing the VALUE property. I will add that to my to do list.

Meanwhile you may want to try delaying the creation of this kind of input in your script to be able to set the input value at creation time.

  3. Re: Setinputvalue for linked fields   Reply   Report abuse  
Picture of Shumit Rehman Shumit Rehman - 2008-06-13 22:08:33 - In reply to message 2 from Manuel Lemos
Yes that is what I have done but Im looking forward to this enhancement in the future!
thanks
Shumit