The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 801 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 801 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message



Form Tools
Assigning a different View to different Submissions - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Assigning a different View to different Submissions (/showthread.php?tid=1556)



Assigning a different View to different Submissions - Mark - Aug 24th, 2011

Hi Ben,

We have a form called 'Branded Stationary' where clients can login and update the text content of their office stationary, ready for monthly ordering. Clients can only edit the pre-defined entries, they cannot add new ones (so new submissions are disabled, as is the delete feature).

For example:

A client logs in and has 'Pens' and 'Business Cards' as separate submissions in the 'Branded Stationary' form. When they open 'Pens' to edit their monthly business tag line, they see fields such as 'Pen Color' and 'Business Tag Line' etc.

Likewise, when they edit the 'Business Cards' option, they get the same fields but they still see 'Pen Color' - So, in another view, we've changed that to read 'Card Color'. However, the Views are only selectable via the top drop-down menu, not the Edit icon next to each Submission. We have hidden the View drop-down menu to clients.

So, my question is (without creating a form for each Stationary item we offer branding) is it possible to assign a View to particular Submissions? My initial idea would be to create an additional field in the Form where the 'View ID' is entered by the Admin user (hidden to the end client). Then re-linking the Edit icon to be dynamic, dependant on the 'View ID' specified for that Submission?

In your opinion, what would be the best way to achieve this?

Hope this makes sense.

- Mark


RE: Assigning a different View to different Submissions - Ben - Aug 24th, 2011

Hey Mark,

Yeesh, tricky one. Those two pages: edit submission & submission listing page were designed to go hand in hand. The submission listing page will only ever list the content of a single View.

However, in order to do what you want - show different content on the Edit Submission page, the only way to do that *would* be with different Views.

Huh!

It's possible there would be some way to circumvent it with the Hooks Manager module, but it wouldn't be terribly elegant. You're on 2.0.6, right?

- Ben



RE: Assigning a different View to different Submissions - Mark - Aug 24th, 2011

Hi Ben,

Thanks for the quick response - Yes I'm on the latest release...

Thanks

- Mark


RE: Assigning a different View to different Submissions - Ben - Aug 24th, 2011

Hey Mark - sorry, do you mean 2.1.0 or 2.0.6? 2.1.0 is now the standard build, so I just wanted to double-check!

- Ben


RE: Assigning a different View to different Submissions - Mark - Aug 24th, 2011

Hi Ben,

My bad! I meant we have 2.1.0!

- Mark


RE: Assigning a different View to different Submissions - derin123 - Aug 23rd, 2021

(Aug 24th, 2011, 8:07 AM)Mark Wrote: Hi Ben,

My bad! I meant we have 2.1.0!

- Mark

Qualities of business greatness vary from one profession to another. We cannot say that one business is superior to another one. Because all of them have different best master thesis writing service aspects and we have to handle them also in quite different forms to another one.


RE: Assigning a different View to different Submissions - Kayne909 - Sep 23rd, 2021

(Aug 24th, 2011, 6:27 AM) pid=\5850' Wrote:British Essay Writers urges that you persist on forward and reconsider your decision. If you need assistance, this online dissertation writing will offer you the support and help you need to complete your dissertation.