Form Customization

Permalink Browser Info Environment
Hi team I love this addon it allows me to css style tmy form which is great.

how ever I have a question i would like to add in a Value feild which can be set in the css some how or front end dont care which allows me to set a value feild with differnt styling then if the users click the box and types.

All i want in the input t state lable: additonal value: for additional infromation, requirements , question. In one of the feilds
I tryed it my self iby adding a value feild below but i bet there is much more taht need to be done. ( really the basic form block should have this?)
<?php  foreach ($questions as $question): ?>
<div class="field field-<?php  echo $question['type']; ?>">
<label <?php  echo $question['labelFor']; ?>>
<?php  echo $question['question']; ?>
<?php  if ($question['required']): ?>
<span class="required">*</span>
<?php  endif; ?>
</label>
<value <?php  echo $question['valueFor']; ?>>
</value>
<?php  echo $question['input']; ?>
         </div>


Is this possible?

Regards
Carl

Type: Discussion
Status: New
carl101lee
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
Sorry, but I think you are asking in the wrong place.

This addon only changes the HTML output of the form block, but does not change the functionality. It sounds like you are looking for the "concrete5 team", which is not me -- you should post this in the regular "building with concrete5" forums.
carl101lee replied on at Permalink Reply
carl101lee
Hi

Thanks for your response, I have had a look through the forums and I am not the only one requesting this I believe. But with out hard-wiring this into the code, they are planning to bring it in in the future I believe. But this is with the original form, so not with css styling

What I was wondering as I only need it for 1 field. What I was wondering, trying was to hard code it into your html output as a variable set to message for #Question?? in your php for-each function.
But I thought all I need to add was a add a line in to include the option Value=""

Like this
<?php echo 'value="'.$variable.'"' ; ?>

or
<?php  foreach ($questions as $question): ?>
<div class="field field-<?php  echo $question['type']; ?>">
<label <?php  echo $question['labelFor']; ?>>
<?php  echo $question['question']; ?>
<?php  echo $question['valueFor']  ?>
<?php  if ($question['required']): ?>
<span class="required">*</span>
<?php  endif; ?>
</label>


But I guess this would needed adding the the code higher up, but I don't understand that part, I am capable at PHP and css but I haven't learned the way concrete does stuff yet!

I guess if I purchase one for the from advanced blocks it has this feature maybe, but then I bet it doesn't work with the css styling!

Any help would be useful.
Thanks
Carl Lee
PS. One thing I created a copy of forms to test your add-on for styling, But after i deleted them and added to the page defaults the QuestionNumber variable keeps increasing is there any way to rest this to 1 -5 instead of 15- 20 which I am now on.
Not a Major issue just me wanting to keep the code neat! (I tried removing them all deleting cache and starting again didn't work.
jordanlev replied on at Permalink Reply
jordanlev
I am sorry, but I do not think we understand each other.
This is not the appropriate forum to get assistance with what you're asking. I think you should post this question to the regular "Building With Concrete5" forum here:
http://www.concrete5.org/community/forums/customizing_c5/...

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.