[pmwiki-users] input default

Hans Bracker design at softflow.co.uk
Thu Oct 8 11:18:55 CDT 2015


following on from the discussion about using input checkbox as input
array, and having the checkbox defaults set:

Is there a possibility to have this done for other input controls,
like text fields?

Example in a form:

(:input default $:name[] {$:name} :)
First name (:input text $:name[] :)
Middle name (:input text $:name[] :)
Last name (:input text $:name[] :)

PTV:
name: first middle last

input default will populate all 3 $:name[] fields with 'first'.
But values entered in the three fields will get written as space
separated string to PTV 'name'.

Can input default set the  $:name[] fields in order of the space
separated values of the PTV 'name'?
Could such functionality for input default be added to PmWiki?


thanks,
Hans




More information about the pmwiki-users mailing list