[Solved] Hide custom field in registration details

More
11 years 3 months ago #54207 by Maxime
@Tuan: Thanks, worked like a charm! Hope you can give a look at my other post about conditional fields ;)

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #54208 by Maxime
@Tuan: Would be possible to apply these modifications on summary at the end of the form? Messages and headings are still visible on final page (/registration-complete.html?registration_code=...).

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 3 months ago #54209 by Baptiste
wow great tool, just installed!

Thank you!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 3 months ago #54215 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic [Solved] Hide custom field in registration details
@Maxime: Why not ? Get this file , upload to the same folder and it should work well

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #54216 by Maxime
@Tuan: u sure about the file? Message and headings are still visible on registration complete's summary...I'm referring to the online front-end summary page after completing the form, not the confirmation email (which is working great now).

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 3 months ago #54217 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic [Solved] Hide custom field in registration details
Sorry. Wrong file uploaded. You can get the correct file here

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #54219 by Maxime
Perfect, it did the job ! Thanks!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 3 months ago #54223 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic [Solved] Hide custom field in registration details
Great. Thanks for confirming !

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 2 months ago #55733 by Baptiste
Hi Tuan !

Tuan Pham Ngoc wrote: if (in_array($field->type, array('Message', 'Heading')))
{
continue;
}
If you want to exclude other field types, simply add it to the array
Tuan


Can you tell me if there is a way to make the same thing, but on one specific field (with name, or id...)
(for exemple : "if $field->name=", or "if $field->id=").

Thank you for your answer!

Baptiste

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 2 months ago #55775 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic [Solved] Hide custom field in registration details
Hi

Without looking at the code again, I think you can try:

if ($field->name == 'name_of_the_field_you_want_to_hide')
{
continue;
}

That code should work

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc