The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Form manager recommended updates - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Form manager recommended updates (/showthread.php?tid=973)



Form manager recommended updates - andrewmoreau1996 - 02-23-2018

First off I would like to say I love userspice and thank you for all of your hard work! Next, I was using 4.3 and building a test form and thought it might be nice to have a "duplicate" button, so if I am creating 2 forms that are similar I don't have to start from scratch. I would also love to see an "edit form name" button in case I decide to change the name later on or make a spelling error.


Form manager recommended updates - dan - 02-23-2018

Those are both great ideas. Would you mind submitting those to userspice.com/bugs so they make it to my to do list?


Form manager recommended updates - vengaband - 03-01-2018

I created a form from manage form page. When I display it there's a button created already. I read your documentation and tried to customize the button but unfortunately it doesn't work? It there's a way just create custom button instead of inserting a script. I'm new in php? Im sorry.



Form manager recommended updates - vengaband - 03-01-2018

What is missing?



<?php


$token = Token::generate();
$options = ['token'=>$token];

displayForm('sample');
$options = array(
'submit'=>'Next Page',
'class'=>'btn btn-success',
'value'=>'This is the submit button',
);
?>


Form manager recommended updates - vengaband - 03-01-2018

Disregard I know what is missing. I got it.

displayForm('sample', $options);


Form manager recommended updates - mudmin - 03-01-2018

I need to make that clearer. Thanks for letting me know. Btw, I just posted some advanced documentation for things that are coming out on Monday to make form processing more powerful.